6.8.45. Knock detection window (pan_KnockDetectionWindow)

Schedule the angular region used to process a knock sensor signal for a cylinder.

6.8.45.1. Supported targets

M670-000

6.8.45.2. Required license

None (Main library). (See Section 2.3, “Licensed Features”.)

6.8.45.3. Description

The pan_KnockDetectionWindow block schedules sampling and filtering of a knock transducer sensor signal in regions relative to each cylinder's TDC-firing event.

Note

The angle sense differs from most other angular blocks. A positive value denotes an angle before TDC-firing, and a negative value denotes an angle after TDC-firing. See Section 6.2.1, “Relative angles to TDC-firing” for more).

The filter characteristics are specific to the knock signal processing device. For the HIP901x family of knock signal processors, the pan_KnockFilter_Hip901x block is used to configure these settings. The result of the sampling and filtering is provided by the pan_KnockFeedback block.

Figure 6.16. Knock window schedule

Knock window schedule

The above diagram shows a knock window relative to a cylinder's TDC-firing point, where the knock transducer sensor signal is sampled and filtered. The knock window is chosen to centre on a cylinder's knocking event and is used to exclude other engine noise such as ignition and valve closing events.

For each cylinder, there is a region around the cylinder's TDC-firing point within which a knock window can be generated.

If the start angle of the knock window lies outside the cylinder's region, or if the end angle occurs before start angle or if the window is too small to be generated reliably, no knock window is generated for that cylinder.

If the end angle extends into the next cylinder's region, the end angle is clipped so that it does not cause the knock window to extend into the next cylinder's region.

The result of the knock filtering is made available shortly after the end of the knock window via the pan_KnockFeedback block.

Knock signal processing is active in full engine synchronisation mode and disabled in other modes.

6.8.45.4. Inports

  • cylinder

    The cylinder to request a knock detection window.

    Range: [1, n] where n is the number of cylinders specified by the pan_EngineConfig block.

    Value type:Integer
  • on_angle

    Start angle of the knock detection window relative to the cylinder's TDC-firing angle (positive angles before TDC-firing). The block folds the angle into the range [0, 720)°.

    Value type:Real
  • off_angle

    End angle of the knock detection window relative to the cylinder's TDC-firing angle (positive angles before TDC-firing). The block folds the angle into the range [0, 720)°.

    Value type:Real

6.8.45.5. Outports

None.

6.8.45.6. Mask parameters

  • Window

    A drop-down list of window types. Some targets support the sampling of a reference window in addition to an active window.

    Value type:List
    Calibratable:No
  • Channel

    The input pin(s) sourcing the signal to measure. Note that this mask parameter is currently unused and is only provided for future expandability. The channel is selected when the pan_KnockFilter_Hip901x block iterates. This also means that only one knock channel window can be set at a time.

    Value type:List
    Calibratable:No

6.8.45.7. Notes

None.