Skip to main content

LIN Master Simulation Sequence

In each flow below, solid-line boxes indicate required processing, and dashed-line boxes indicate optional processing. ☆ means the API is called multiple times according to the number of MicroPeckerX units used, and ★ means the API is called multiple times according to the total number of MicroPeckerX CHs used.

Sequence Table​

#APIProcessDescription
1MPXOpenRecognize MicroPeckerX unitsConnect all target MicroPeckerX units to the PC first, then call this API.
2MPXLINSetParamSet communication parametersCall this API for each CH in use (communication parameters can be configured independently for each CH).
3MPXSetGetLogModeSet log acquisition modeCall this API for each CH in use (log acquisition mode can be configured independently for each CH).
A CH for which this API is not called operates in log-acquisition API mode.
4MPXLINSetMasterScheduleSet master schedule enable/disable and related settingsSet schedule and one-time transmission enable/disable settings as needed.
5MPXLINSetMasterSimSet master simulation for each scheduleConfigure master simulation for each schedule in use.
6MPXLINChangeMasterScheduleChange the master schedule to execute when monitoring startsSet the schedule to use when monitoring starts.
7MPXLINSetStatusSet LIN status when monitoring startsCall this API for each CH in use (LIN status can be configured independently for each CH).
A CH for which this API is not called starts monitoring with LIN status set to Run (Awake).
8MPXMonitorStartStart monitoringCall this API for each MicroPeckerX unit in use.
When operating multiple MicroPeckerX units synchronously, start monitoring for all MicroPeckerX units operating in slave mode, and then start monitoring for the MicroPeckerX unit operating in master mode.
9MPXGetLog
or
MPXLINGetLogEx
Acquire log informationPeriodically call this API for each CH to acquire log information.
If log information is not acquired for an extended period, a buffer overrun occurs, but operation itself is not affected.
10MPXLINSetMasterItem
or
MPXLINChangeMasterItem
or
MPXLINChangeMasterSchedule
or
MPXLINPauseMasterSchedule
or
MPXLINMasterInterrupt
or
MPXLINSetStatus
Change master schedule settings by item
Change master schedule settings by item
Change the master schedule to execute
Stop/resume the running master schedule
Interrupt transmission
Change LIN status
Change master simulation settings, send interrupt frames, or change LIN status as needed.
11MPXMonitorStopStop monitoringCall this API for each MicroPeckerX unit in use at the timing when monitoring is stopped.
When multiple MicroPeckerX units are operating, stop monitoring for the MicroPeckerX unit operating in master mode first, and then stop monitoring for the MicroPeckerX units operating in slave mode sequentially.
12MPXCloseRelease MicroPeckerX recognitionCall this API once to release recognition of recognized MicroPeckerX units.
To start monitoring again while MicroPeckerX units remain recognized, restart processing from #2.