Patent Abstract:
The user configures to process at least two data sources without depending on preprogrammed functions or resorting to reprogramming the basic software of the device.

Full Description:
NOTICE REGARDING COPYRIGHTED MATERIAL 
       [0001]    A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction of the patent document or the patent disclosure as it appears in the Patent and Trademark Office file or records, but otherwise reserves all copyright rights whatsoever. 
       FIELD OF THE INVENTION 
       [0002]    This invention relates to vehicle diagnostics. 
       BACKGROUND OF THE INVENTION 
       [0003]    The current art of extracting raw data from a vehicle and converting it to engineering units is based on a one to one extraction of the data from the vehicle&#39;s bus messages and applying a linear scaling function. This conversion can be processed either in the diagnostic device or transmitted to a centralized host computer for conversion. 
       SUMMARY OF INVENTION 
       [0004]    This invention extends the ability to process raw data to human understandable data values within a vehicle diagnostic computer to allow the user to create new data values from multiple raw data sources without depending on preprogrammed functions or resorting to reprogramming the basic software of the device. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0005]    A better understanding of the present invention can be obtained when the following detailed description of the preferred embodiment is considered in conjunction with the following drawings, in which: 
           [0006]      FIG. 1  is a diagram that explains the combination of data sources and flow of data. 
       
    
    
     DETAILED DESCRIPTION 
       [0007]    An engine (or electronic) control unit (ECU) determines the amount of fuel, ignition timing and other parameters of a vehicle engine by reading values from sensors monitoring the engine and other, associated vehicle components and (sub)systems (including those involving telematics). In particular, to use an exemplary standard, a vehicle can be determined by requesting a list of supported Parameter IDs (PIDs), as defined in OBDII/SAE J1979. 
         [0008]    Conventional implementation of configuring for processing data allowed the user to extract the raw data from a specific location within a string of bits from a serially transmitted message from a vehicle&#39;s diagnostic message in raw or native format; and to ‘scale’ raw data to convert to desired engineering units by the linear formula of “mx+b” where ‘m’ and ‘b’ are configurable parameters. The result is that the raw data could be converted to the desired engineering units for any data point. This conversion, in particular, and many other functions, are conventionally provided by internal hard-coded firmware in the vehicle diagnostic device. 
         [0009]    In contrast to conventional methods, a more flexible and user-convenient method is disclosed by the present invention. The present invention may be implemented in the vehicle telematics locator unit as a matter of convenience (so that, for example hardware and software resources may be shared with the telematics technology and so that the results of the present invention may be sent to a central intelligence, or may receive over-the-air commands from a central intelligence). For convenience, the present invention will be described as residing in the vehicle Locator but it will be appreciated that the present invention does not depend on the presence and absence of telematics technology, or on the exact physical location within the vehicle of the physical implementation of the present invention. The present invention can be implemented as a stand-alone unit interfacing with the ECU or equivalent sources of monitored PIDs. 
         [0010]    With reference to  FIG. 1 , Raw ECU message  100  has data in its native (or near-native) form from the ECU. Derived Data  110  is raw ECU message that has already been processed so that relevant information is presented for easy reading. The user configures the Locator to chose which one of {Raw ECU message  100  and Derived Data  110 } to use as Primary Data  200  (and if Raw ECU message  100  is chosen, it will be processed before forming part of Primary Data  200 ). 
         [0011]    The user also configures the Locator to choose additional Derived Data  120  to form Secondary Data  300 . 
         [0012]    Thus two sources are defined, Primary Data  200  and Secondary Data  300 . 
         [0013]    The User configures the Locator to choose one of several methods to further process Primary Data  200 . One conventional method is by an internal hard-coded function  401  which then produces Derived Data  480 . Another conventional method is to process linearly Primary Data  200 , i.e. multiply by a scaling factor or scalar and then add offset—step  400 . A new method is by External Function  450  (which will be explained later below) which then produces Derived Data  480 . 
         [0014]    The User may configure that, in Step  470 , the result of Step  400  (multiply by a scaling factor and then add offset) is processed in conjunction with Secondary Data  300 , and the result of Step  470  becomes Derived Data  480 . In Step  470 , the interaction between Secondary Data  300  and the result of Step  400 , is defined by the user choice of a common arithmetic operator (as will be explained below). 
         [0015]      FIG. 1  shows the configurable mathematical options: 
         [0000]      DerivedData 480=(Scaling*[Location within message of Raw Data]+Offset)&lt;*or+or−or/or 0*&gt;SecondaryData 380)
 
         [0000]      OR (External Function 450 using scripting Language (Primary Data, Secondary Data) 
         [0000]      OR (Internal hardcoded Function 401 (Primary Data, Secondary Data). 
         [0016]    An exemplary format of a user-configurable command to define a conventional PID, is: 
         [0017]    [&lt;serviceName&gt;define&lt;description&gt;&lt;PID&gt;&lt;byteloc&gt;:&lt;bitloc&gt;&lt;length&gt;&lt;m_scaling factor&gt;&lt;b_offset&gt;&lt;unitsLabel&gt;] 
         [0018]    The invention allows additional parameters to be included in the command that, for example, transforms a single variable linear equation to a multivariable equation to create a new valued PID based on multiple variables operating (perhaps operating on each other) to transform the output variable to a new entity. 
         [0019]    Each definition command of the present invention&#39;s new configuration command, allows two more fields: 1) an arithmetic operator field that will hold a value representing one of {multiplication, addition, subtraction or division}; and 2) an operand being a secondary data source, being a pre-defined PID. Accordingly, according to the present invention, the format of a user-configurable command to define a Derived PID is: 
         [0020]    [&lt;serviceName&gt;define&lt;description&gt;&lt;PID&gt;&lt;byteloc&gt;:&lt;bitloc&gt;&lt;length&gt;&lt;m_scaling factor&gt;&lt;b_offset&gt;&lt;unitsLabel&gt;&lt;operator&gt;&lt;operand&gt;] 
         [0021]    In its most basic form, the format of a user-configurable command to define a Derived PID is: 
         [0022]    [&lt;serviceName&gt;define&lt;description&gt;&lt;primary data source&gt;&lt;operator&gt;&lt;operand=secondary source of data&gt;] 
         [0023]    where &lt;operator&gt; is any function recognized by mathematics and (however) implemented by mathematics and &lt;operand=secondary source of data&gt; is any other PID (whether pre-existing according to industry standards or another user-defined Derived PID). 
         [0024]    Below is an example to calculate Fuel Economy in Litres/100 Kms where the available PIDs are MAF (mass air flow) and Speed in km/hr. 
         [0000]      The equation for Fuel Economy=FuelRate {litres/hr}/Speed {km/hr}*100→{litres/100 km}
 
         [0025]    FuelRate is calculated as follows. 
         [0000]      FuelRate=MAF*(3600{secs/hr})/(1000{cc/litres}* AirFuelRatio*gasoline density) 
         [0026]    An example of the command for defining Speed (according to the above command format) as an exemplary Secondary Data  300 ) is: 
         [0027]    [&lt;J1979&gt;define&lt;speed&gt;&lt;1-D&gt;&lt;3:1&gt;&lt;8&gt;&lt;1&gt;&lt;0&gt;&lt;km/hr&gt;] 
         [0028]    Thus PID 1-D holds the value for speed. 
         [0029]    Next is the command to use this secondary source in the formula to transform MAF and Speed into Fuel Economy (where scaling m=0.356=3600/1000*13.7*0.737{density:kg/L}: 
         [0030]    [&lt;J1979 define&lt;fuelEconomy&gt;&lt;99-85&gt;&lt;3:1&gt;&lt;8&gt;&lt;0.356&gt;&lt;0&gt;&lt;L/100 kms&gt;&lt;/&gt;&lt;1-D&gt;] 
         [0031]    Thus (user-defined) Derived PID 99-85 holds the value for Fuel Economy. This PID can be read by another (user-configured PID, created by the same method described herein) or sent upstream to central intelligence. 
         [0032]    The operator in the above example is “/” (division) and the Secondary Data  300  is PID 1-D which has been calculated above. In other words, user-defined Derived PID 99-85 transforms MFA and Speed into Fuel Economy by arithmetically processing Primary  200  and Secondary Data  300 . 
         [0033]    The benefits of the present invention include: the ability to create arbitrary functions; simplification of the built-in functions and their selection, so that, for example, fuel economy could be expected to be available but to supply conversions for all the methods of displaying fuel economy, the system would otherwise have to be preprogrammed for miles/gallon, km/litre or litre/100 kms; and if these two PIDs are not available, fuel economy may have to be calculated from completely different sources (such as the dwell time of the injector pulses that have very different transforming equations). 
         [0034]    External Function. 
         [0035]    The concept of the external function feature is to provide a method for the PID processing code to determine if a PID is connected to an externally processed computation, and then provide the interface hooks to send the captured data to that external code and then to retrieve the results for further processing and/or storage. 
         [0036]    The following pseudo code shows how the external function is initiated. The external function can be expressed using any standard or custom programming language that can be executed within the telematics computing device. 
         [0000]    
       
         
               
             
           
               
                   
               
             
             
               
                     While( PidRecord = getNextPid( ) ) != endofPidList) 
               
               
                     { 
               
               
                     if( externalFunctionName = CheckForExternalFunction( ) != 
               
               
                     NULL) 
               
               
                     { 
               
               
                     PrimaryData = PidRecord.getValue( ); 
               
               
                     SecondaryData = PidRecord.getSecondaryValue( ); 
               
               
                     newPrimaryData = ExternalFunctionHandoff( 
               
               
                 externalFunctionName, PrimaryData, SecondaryData); 
               
               
                     PidRecord.setValue( newPrimaryData ); 
               
               
                     } 
               
               
                     //...continue processing by checking for internal configuration 
               
               
                     } 
               
               
                   
               
             
          
         
       
     
         [0037]    The ‘CheckForExternalFunction’ function simply parses the definitions of the PIDs and determines if it has been configured to interact with an external function (relative to the program that is asking). The specific expression used to apply the external function, is to insert a “flag” or similar marker (when parsing)—for example, a “@” character as the first character in the &lt;description&gt; field of the user-configured Derived PID definition record. The remaining characters are the alphanumeric name that identifies the external function in the external programming application, and control is thereby passed accordingly. 
         [0038]    The ‘External Function Handoff’ function is an interface routine that passes the name of the function and any number of internally obtained data values to the another program running in the computer. This other program will then return the value after having executed any arbitrary sequence of computer code crafted by a programmer. 
         [0039]    Herein, the term “primary” and “secondary” are used only in the numerical counting sense (of “first” and “second”) and without necessarily connoting any sense of the relative “importance” of the respective data they enumerate. 
         [0040]    It will be appreciated that one of Primary Data  200  or Secondary Data  300  is or could be itself a PID that is the result of a prior application of the present invention (i.e. is Derived Data  110  or Derived Data  120 ). 
         [0041]    It will be appreciated that the result may be treated as a PID that other PID-defining functions can read and use, or may be simply forwarded to central intelligence for further processing. 
         [0042]    It will be appreciated by those skilled in the art that this invention can be continued with a “tertiary” (or third) data (i.e. the resulting PID is the result of processing three pieces of data). 
         [0043]    Thus, it is seen that user creates the equation for derived data points rather than limited to a selection of prior programmed functions. 
         [0044]    The significance of this invention is that it allows the user to create a custom algorithm from a simple set of operations without having to resort to programming languages. It allows the user to remain as a domain expert without requiring him to be a programming expert. 
         [0045]    Allow more than two input data points in each configurable function. This will reduce the intermediate data point requirements and be easier to create more complex functions 
         [0046]    Instead of having the user configure the functions through configuration commands, the user may use external scripting languages to process the input data points to obtain the derived data point value. 
         [0047]    It will be appreciated that arithmetic operators other than the conventional {addition, subtraction, multiplication, division) are possible and advisable depending on the application (e.g. pick the largest of the absolute value of processed Primary Data  200  and Secondary Data  300 ). Thus, for example, the configurable operator could be more complex mathematical functions such as Square Root functions, Power Functions, Logarithmic functions, and complex Table lookup functions, fuzzy logic tables, whether such functions are accessed directly or indirectly on the operand. 
         [0048]    Accordingly, depending on the nature of the operator (arithmetic or more complex), the nature of the operand will be defined in alignment (semantically and physically to model the realities of the engine and associated vehicle components). 
         [0049]    Provide Scaling Functionality (conversion to engineering units) for the secondary data point so that two raw data points could be used in the same configured function. 
         [0050]    Although the method and apparatus of the present invention has been described in connection with the preferred embodiment, it is not intended to be limited to the specific form set forth herein, but on the contrary, it is intended to cover such alternatives, modifications, and equivalents, as can be reasonably included within the spirit and scope of the invention as defined by the appended claims. All figures are drawn for ease of explanation of the basic teachings of the present invention only; the extensions of the figures with respect to number, position, relationship, and dimensions of the parts to form the preferred embodiment will be explained or will be within the skill of the art after the following teachings of the present invention have been read and understood. Further, the exact dimensions and dimensional proportions to conform to specific force, weight, strength, and similar requirements will likewise be within the skill of the art after the following teachings of the present invention have been read and understood.

Technology Classification (CPC): 6