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
| # | API | Process | Description |
|---|---|---|---|
| 1 | MPXOpen | Recognize MicroPeckerX units | Connect all target MicroPeckerX units to the PC, then call this API. |
| 2 | MPXLINSetParam | Set communication parameters | Call this API for each channel in use. Parameters can be configured independently per channel. |
| 3 | MPXSetGetLogMode | Set log acquisition mode | Call this API per channel. Mode can be set independently per channel. Channels where this API is not called operate in callback mode. |
| 4 | MPXSetLogCallBack | Set callback function for log acquisition | Call per channel configured for callback mode in #3. Not required for channels configured for log-acquisition API mode. |
| 5 | MPXLINSetMasterSchedule | Configure enable/disable and other master schedule settings | Configure schedules and one-time transmission enable/disable as needed. |
| 6 | MPXLINSetMasterSim | Configure master simulation per schedule | Configure master simulation for each schedule in use. |
| 7 | MPXLINChangeMasterSchedule | Change active master schedule at monitoring start | Set the schedule to be used at monitoring start. |
| 8 | MPXLINSetStatus | Set LIN status at monitoring start | Call this API per channel in use. If not called, LIN status at monitoring start becomes Run (Awake). |
| 9 | MPXMonitorStart | Start monitoring | Call this API for each MicroPeckerX unit in use. For synchronized operation, start all slave-mode units first, then the master-mode unit. |
| 10 | MPXGetLog or MPXLINGetLogEx | Acquire log information | If 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. |
| 11 | MPXLINSetMasterItem 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 status | Change master simulation settings, send interrupts, and change LIN status as needed. |
| 12 | MPXMonitorStop | Stop monitoring | Call this API for each unit when stopping monitoring. For multiple units, stop master-mode unit first, then slave-mode units sequentially. |
| 13 | MPXClose | Release MicroPeckerX recognition | Call once to release recognized units. To start monitoring again while keeping recognition, restart from #2. |