Skip to main content

Setting Screen Overview

After installing this plugin, Security Window is added to MicroPeckerX Control Software. From this window, you can configure message authentication, perform monitoring, and review logs.

info

Security Window is a dedicated setting/monitoring screen for the message authentication plugin.

Security Window

Overview

  • A tab is shown for each channel, allowing you to switch displayed settings and logs per channel.
  • Includes security message log display, setting file save/load buttons, and a button to open detailed settings.
Security Window
NoItemDescription
[1]Log areaDisplays security message logs.
[2]Security ID ListDisplays target CAN IDs for message authentication and their security settings.
-SaveLog button buttonOpens a file dialog.
Saves transmitted/received security messages shown on the selected channel tab as a CSV log file.
-SecuritySetting button buttonOpens the Security Setting dialog.
-Security Mode EnabledEnables/disables message authentication. When checked, message authentication is enabled.

Security Setting Dialog

The Security Setting dialog is used for detailed message authentication configuration. It has two tabs: Ch Setting (channel-common) and ID Setting (per CAN ID).

tip

Typically, define overall policy in Ch Setting, then override only specific IDs in ID Setting. In ID Setting, you can also configure periodic transmission with message authentication per CAN ID.

Security Setting Dialog
NoItemDescription
[1]Save button buttonOpens a file dialog.
Loads the selected security setting file and applies its contents.
File button buttonOpens a file dialog.
Saves current security settings to a security setting file.
[2]Ch Setting tabConfigures channel-common message authentication settings.
ID Setting tabConfigures message authentication settings per CAN ID.
[3]OK button buttonSaves security settings and closes the dialog.
CANCEL button buttonDiscards changes and closes the dialog.

Ch Setting Tab (Common Settings)

In the Ch Setting tab, you can configure channel-common message authentication settings.

Ch Setting Dialog
NoItemDescription
[1]Profile

Select the message authentication security profile:

  • Jaspar: Uses JASPAR specification settings.
  • Custom: Uses user-defined settings.
    Depending on this selection, item names and editable ranges in later settings change.
FV Master

Select master/slave for FV (Freshness Value).
Checked = master (sends sync message), unchecked = slave (receives sync message).

[2]SyncFrame SettingConfigures synchronization messages.
[3]Security Setting
(Ch Common)
Configures channel-common message authentication settings.
Caution

Choose profile according to your internal security policy and vehicle manufacturer requirements.

SyncFrame Setting

Configures synchronization message settings.

SyncFrame Setting
ItemDescription
ProtocolSelect protocol: CAN or CAN-FD.
Std./Ext.Select CAN ID type: Std. (standard ID) or Ext. (extended ID).
IDEnter CAN ID.

Security Setting (Ch common)

Security Setting
NoItemDescription
[1]Callout FileName

Behavior depends on selected profile:

  • Jaspar: A Jaspar-compatible fixed callout DLL is used automatically. You cannot select a DLL or edit custom parameters.
  • Custom: You can select a callout DLL file (external extension program). The selected DLL path is shown.
Read button button

Enabled when Profile: Custom is selected. Opens file dialog to select a callout DLL file.

Custom Param button button

Enabled when Profile: Custom is selected. Opens Callout Custom Param Setting dialog to view/change callout custom parameters.

[2]Use Message AuthentificationEnables/disables message authentication. Checked means enabled.
MAC Verify AttemptsEnter maximum MAC verification attempts (1 to 255). If verification fails continuously up to this count, authentication error occurs.
tip

Use Callout DLL when extending authentication logic or key generation with an external program. In Jaspar profile, fixed DLL is used automatically. DLL selection is available only in Custom profile.

Callout Custom Param Setting

When Profile: Custom is selected, loading a callout DLL and clicking Custom Param opens this dialog. It displays the list of custom parameters provided by the callout DLL.

Callout Custom Param Setting
ItemDescription
Param[Type]Displays parameter name and data type.
Type notation:
- Sn: signed integer (n = bit length)
- Un: unsigned integer (n = bit length)
- ASCII(m): string (m = byte length)
ValueDisplays parameter value (signed integer in decimal, unsigned integer in hexadecimal). Click cell to edit.
OK button buttonSaves parameter settings and closes dialog.
CANCEL button buttonDiscards parameter changes and closes dialog.

MAC Type Setting

Configures MAC type and key.

MAC Type Setting
ItemDescription
Cryptographic ProtocolSelect cryptographic protocol used for MAC generation. Only CMAC/AES-128 is available.
Truncated MAC PositionSpecify bit position in Data field where truncated MAC is placed, using Motorola sequential.
Example: if 40 to 63 is specified, upper 24 bits of MAC are placed in D6 to D8.
Crypto Key SettingSelect key generation method:
- Fixed Data(Hex): uses fixed hexadecimal value entered right-aligned in big-endian.
CreateRandom button button generates a random fixed value.
- Callout: uses value generated by callout DLL.

FV Setting

Configures FV.

FV Setting
ItemDescription
FV UsedEnables/disables FV. Checked means FV is used.
Truncated FV PosisionSpecify FV bit length and FV bit position in Data field using Motorola sequential.
Example: 32 to 39 means FV is 8 bits and placed in D5.
Fixed Data / CalloutSelect FV generation method:
- Fixed Data: uses fixed hexadecimal value entered right-aligned in big-endian.
- Callout: uses value generated by callout DLL.

MAC Source Setting

Configures source data used for MAC calculation.

MAC Source Setting
CategoryItemDescription
Message ID / PrefixConfigures prefix. Label changes by profile:
- Jaspar: Message ID
- Custom: Prefix
LengthSpecifies prefix bit length.
Element button buttonOpens Element Setting dialog to configure prefix elements.
TypeSelects prefix generation method:
- Not Used
- Fixed Data: fixed hexadecimal value entered right-aligned in big-endian
- Callout: value generated by callout DLL
CAN/CAN-FD Payload [Truncated]Configures payload.
Payload UsedEnables/disables payload use.
Checked means part of Data field can be used as payload.
PositionSpecifies bit position in Data field to use as payload using Motorola sequential.
Example: 0 to 31 means D1 to D4 are treated as payload.
Freshness Value / PostfixConfigures postfix. Label changes by profile:
- Jaspar: Freshness Value
- Custom: Postfix
LengthSpecifies postfix bit length.
Element button buttonOpens Element Setting dialog to configure postfix elements.
TypeSelects postfix generation method:
- Not Used
- Fixed Data: fixed hexadecimal value entered right-aligned in big-endian
- Callout: value generated by callout DLL
Element Setting

Click the Element button for Prefix/Postfix in MAC Source Setting to open this dialog.

Prefix
Element Setting Prefix
Postfix
Element Setting Postfix
CategoryItemDescription
Element ListDisplays list of elements.
NameDisplays element name.
PositionDisplays element bit position.
Bit AlignmentDisplays bit alignment. Left = left-aligned, Right = right-aligned.
Byte EndianDisplays byte endian. Big = big-endian, Little = little-endian.
FormatDisplays element initial value (hex).
Element DataAllows editing selected element settings from Element List.
NameEnter element name.
PositionSpecify element bit length and bit position.
Length = 0Check to set bit length to 0. When checked, all items except Name become - and are not editable.
Initial Value(Hex)Enter initial element value in hexadecimal.
Plus button buttonAdds an element.
Trash button buttonDeletes selected element from Element List.
OK button buttonSaves element settings and closes dialog. (*3)
Cancel button buttonDiscards added/modified/deleted element settings and closes dialog.

If number of elements is 0, one element is auto-generated under these rules:

  • Name: Prefix for prefix, Postfix for postfix.
  • Position: full range of prefix/postfix. Example: if Length is 16 bits, position is 0 to 15.
  • Initial Value(Hex): all bits are 0.

ID Setting Tab

In the ID Setting tab, you can configure message authentication per CAN ID.

ID Setting Dialog
NoItemDescription
[1]Target ID ListDisplays list of message authentication settings per CAN ID.
Plus button buttonAdds message authentication setting for CAN ID.
Trash button buttonDeletes selected CAN ID setting in Target ID List.
[2]Target Frame InfoConfigures frame information for selected CAN ID in Target ID List. (*)
[3]Security SettingChanges message authentication settings for selected CAN ID in Target ID List. (*)

*: Hidden when no CAN ID is registered in Target ID List.

Target ID List

Displays list of message authentication settings per CAN ID.

Target ID List
ItemDescription
IDDisplays CAN ID. Std. = standard ID, Ext. = extended ID.
DLCDisplays data length.
Mode (*1)Displays transmission mode:
- Monitor: monitor-only message
- Periodic: periodic transmission message (transmits at cycle configured in Target Frame Info Cycle)
Crypto ProtocolDisplays cryptographic protocol used for MAC generation.
MAC Pos.Displays bit position in Data field where part of generated MAC is placed, using Motorola sequential.
Example: 40-63 means upper 24 bits of MAC are placed at bits 40 to 63 (D6 to D8).
FV Pos.Displays FV bit position in Data field using Motorola sequential.
Example: 32-39 means FV is placed at bits 32 to 39 (D5).
If FV is unused, NotUsed is displayed.
MAC PrefixDisplays prefix source data used for MAC. (*2)
MAC PostfixDisplays postfix source data used for MAC. (*2)
PayloadDisplays payload bit position in Data field used as source data for MAC, using Motorola sequential.
Example: 0-31 means bits 0 to 31 (D1 to D4) are used as payload.

1: Monitor mode is receive-only. Periodic mode transmits at fixed cycle.
2: Displays Callout when callout DLL generated value is used, otherwise NotUsed.

Target Frame Info

Configures frame information for selected CAN ID in Target ID List.

Target Frame Info
ItemDescription
ProtocolSelect protocol: CAN or CAN-FD.
Std./Ext.Select CAN ID type: Std. (standard ID) or Ext. (extended ID).
IDEnter CAN ID.
Bit Rate SwitchEnable/disable bit rate switch. Checked means enabled.
ModeSelect data frame transmission mode:
- Monitor: monitor-only message
- Periodic: periodic transmission message (sends at cycle configured in Cycle)
DLCSelect data frame length.
DataClick Set button to open Data Setting dialog and configure Data field.
CycleSet transmission cycle (ms).
OffsetSet offset time (ms) from monitoring start to first data frame transmission.
Restrictions for periodic transmission
  • Maximum number of CAN IDs for periodic transmission
    For periodic messages (Mode: Periodic), up to 10 CAN IDs per channel and up to 64 CAN IDs total across all channels.
  • Minimum transmission cycle for periodic messages
    Minimum cycle is (n x 1 ms), where n is total number of authenticated CAN IDs configured on Ch1 and Ch2 of one MicroPeckerX unit.
    Example: Ch1 has 2 IDs and Ch2 has 3 IDs -> minimum cycle is 5 ms.
    Even if a shorter cycle is set in Cycle, actual transmission cycle is adjusted to this minimum or longer.
Data Setting Dialog

Click Set button in Target ID List to open Data Setting dialog. It has Hex and Binary tabs and allows switching display format for Data field editing.

Hex tab
Data Setting Hex
Binary tab
Data Setting Binary
CategoryItemDescription
IDDisplays CAN ID.
DLCSelects data length.
Hex tabData areaDisplays Data area in hexadecimal per byte. Example: D1 - 8 means D1, D2, ..., D8 from left to right. Editable.
EditorDisplays Data area in hexadecimal, comma-separated by byte. Editable.
Binary tabData areaDisplays Data area in binary per byte. Items shown:
- Data: byte position in Data area.
- Value: binary value; click cell to edit.
EditorDisplays Data area in binary, comma-separated by byte. Editable.
File button buttonOpens file dialog. Loads selected file and reflects file content to Data area.
Save button buttonOpens file dialog. Saves Data area to file in CSV format.
OK button buttonSaves Data area settings and closes dialog.
CANCEL button buttonDiscards Data area changes and closes dialog.

Data area and Editor are linked: changing one reflects in the other.

Security Setting

Lets you change message authentication settings for selected CAN ID in Target ID List. By default, channel-common settings from Ch Setting are used, but per-ID settings are also supported.

Use Ch Setting: Checked

Uses channel-common message authentication settings from Ch Setting tab.

Security Setting Checked
Use Ch Setting: Unchecked

Uses per-CAN-ID message authentication settings.

Security Setting Unchecked
ItemDescription
Use Ch SettingSelect whether to use channel-common message authentication settings defined in Ch Setting tab.
Checked means channel-common settings are used.
Copy button buttonOverwrites message authentication settings with channel-common settings. (*)
Unavailable when Use Ch Setting is checked.
[1]Configure per-CAN-ID message authentication settings. (*)
For details, refer to Security Setting (Ch common).

*: Callout DLL always uses channel-common message authentication settings.