Skip to main content

LIN Master Simulation Sequence

In the flow below, solid-line boxes indicate required processing and dashed-line boxes indicate optional processing. means call multiple times depending on the number of MicroPeckerX units, and means call multiple times depending on the total number of channels in use.

Sequence Table

#APIProcessDescription
1MPXOpenRecognize MicroPeckerX unitsConnect all target MicroPeckerX units to the PC, then call this API.
2MPXLINSetParamSet communication parametersCall this API for each channel in use. Parameters can be configured independently per channel.
3MPXSetGetLogModeSet log acquisition modeCall this API per channel. Mode can be set independently per channel.
Channels where this API is not called operate in callback mode.
4MPXSetLogCallBackSet callback function for log acquisitionCall per channel configured for callback mode in #3.
Not required for channels configured for log-acquisition API mode.
5MPXLINSetMasterScheduleConfigure enable/disable and other master schedule settingsConfigure schedules and one-time transmission enable/disable as needed.
6MPXLINSetMasterSimConfigure master simulation per scheduleConfigure master simulation for each schedule in use.
7MPXLINChangeMasterScheduleChange active master schedule at monitoring startSet the schedule to be used at monitoring start.
8MPXLINSetStatusSet LIN status at monitoring startCall this API per channel in use.
If not called, LIN status at monitoring start becomes Run (Awake).
9MPXMonitorStartStart monitoringCall this API for each MicroPeckerX unit in use.
For synchronized operation, start all slave-mode units first, then the master-mode unit.
10MPXGetLog
or
MPXLINGetLogEx
Acquire log informationIf log-acquisition API mode is set, call periodically per channel. Buffer overrun may occur if logs are not retrieved continuously, but operation is still maintained.
Not required in callback mode.
11MPXLINSetMasterItem
or
MPXLINChangeMasterItem
or
MPXLINChangeMasterSchedule
or
MPXLINPauseMasterSchedule
or
MPXLINMasterInterrupt
or
MPXLINSetStatus
Change item-level master schedule settings / change active schedule / pause-resume schedule / interrupt transmission / change LIN statusChange master simulation settings, send interrupts, and change LIN status as needed.
12MPXMonitorStopStop monitoringCall this API for each unit when stopping monitoring.
For multiple units, stop master-mode unit first, then slave-mode units sequentially.
13MPXCloseRelease MicroPeckerX recognitionCall once to release recognized units.
To start monitoring again while keeping recognition, restart from #2.