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
| # | API | Process | Description |
|---|---|---|---|
| 1 | MPXOpen | Recognize MicroPeckerX units | Connect all target MicroPeckerX units to the PC first, then call this API. |
| 2 | MPXLINSetParam | Set communication parameters | Call this API for each CH in use (communication parameters can be configured independently for each CH). |
| 3 | MPXSetGetLogMode | Set log acquisition mode | Call 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. |
| 4 | MPXLINSetMasterSchedule | Set master schedule enable/disable and related settings | Set schedule and one-time transmission enable/disable settings as needed. |
| 5 | MPXLINSetMasterSim | Set master simulation for each schedule | Configure master simulation for each schedule in use. |
| 6 | MPXLINChangeMasterSchedule | Change the master schedule to execute when monitoring starts | Set the schedule to use when monitoring starts. |
| 7 | MPXLINSetStatus | Set LIN status when monitoring starts | Call 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). |
| 8 | MPXMonitorStart | Start monitoring | Call 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. |
| 9 | MPXGetLog or MPXLINGetLogEx | Acquire log information | Periodically 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. |
| 10 | MPXLINSetMasterItem 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. |
| 11 | MPXMonitorStop | Stop monitoring | Call 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. |
| 12 | MPXClose | Release MicroPeckerX recognition | Call this API once to release recognition of recognized MicroPeckerX units. To start monitoring again while MicroPeckerX units remain recognized, restart processing from #2. |