Skip to main content

Sequences and Status Transitions

This chapter explains the processing sequences of this product and the transitions of the MicroPeckerX status.

Sequences and status transitions

The overall sequence is shown below. Solid-line boxes indicate required processing, while dashed-line boxes indicate optional processing. ☆ indicates APIs that you may need to call multiple times depending on the number of MicroPeckerX units in use, and ★ indicates APIs that may need to be called multiple times depending on the total number of channels in use.

Monitoring sequence

Sequence table

#APIProcessDescription
1MPXOpenDetect MicroPeckerX unitsAfter connecting every MicroPeckerX you want to use to the PC, call this API once.
2MPXSetCANParamConfigure communication parametersCall this API for each channel you will use. (Communication parameters are configured independently per channel.)
3MPXSetGetLogModeConfigure log acquisition modeCall this API for each channel you will use. (The log acquisition mode is configured independently per channel.)
Channels for which you do not call this API operate in callback mode.
4MPXSetLogCallBackRegister the log callbackFor each channel set to callback mode in step #3, call this API to register the callback function. (You can register different callback functions per channel.)
This API is not required for channels configured for API mode.
5MPXMonitorStartStart monitoringCall this API for each MicroPeckerX unit in use.
When operating multiple units in sync, start monitoring on all slave units first, then start the master unit.
6MPXGetLog
or
MPXGetLogEx
Retrieve log informationWhen using API mode, call this API periodically for each channel to retrieve log information. (If log retrieval is delayed, a buffer overrun occurs.)
This API is not required when using callback mode.
7MPXMonitorStopStop monitoringWhen it is time to stop monitoring, call this API for each MicroPeckerX unit in use.
If multiple units are operating, stop the master unit first, then stop each slave unit in order.
8MPXCloseRelease MicroPeckerX detectionCall this API once when you no longer need to keep the units detected.
To start monitoring again while keeping the units detected, repeat the process from step #2.

Simulation sequence

Sequence table

#APIProcessDescription
1MPXOpenDetect MicroPeckerX unitsAfter connecting every MicroPeckerX you want to use to the PC, call this API.
2MPXSetCANParamConfigure communication parametersCall this API for each channel you will use. (Communication parameters are configured independently per channel.)
3MPXSetGetLogModeConfigure log acquisition modeCall this API for each channel you will use. (The log acquisition mode is configured independently per channel.)
Channels for which you do not call this API operate in callback mode.
4MPXSetLogCallBackRegister the log callbackFor each channel set to callback mode in step #3, call this API to register the callback function. (You can register different callback functions per channel.)
This API is not required for channels configured for API mode.
5MPXSetSlotConfigure slot information before monitoringConfigure slot information as needed before monitoring.
6MPXMonitorStartStart monitoringCall this API for each MicroPeckerX unit in use.
When operating multiple units in sync, start monitoring on all slave units first, then start the master unit.
7MPXGetLog
or
MPXGetLogEx
Retrieve log informationCallback mode does not require calls to MPXGetLog or MPXGetLogEx.
When using API mode and log information is required, retrieve it periodically with MPXGetLog or MPXGetLogEx. A buffer overrun does not affect operation even if you skip retrieval.
8MPXChangeSlot
or
MPXSendSlot
or
MPXDirectSend
Update slot information during monitoring / Request slot transmission / Transmit a frameChange slot information or send data as needed while monitoring.
9MPXMonitorStopStop monitoringWhen it is time to stop monitoring, call this API for each MicroPeckerX unit in use.
If multiple units are operating, stop the master unit first, then stop each slave unit in order.
10MPXCloseRelease MicroPeckerX detectionCall this API once when you no longer need to keep the units detected.
To start monitoring again while keeping the units detected, repeat the process from step #2.

Log replay sequence

Sequence table

#APIProcessDescription
1MPXOpenDetect MicroPeckerX unitsAfter connecting every MicroPeckerX you want to use to the PC, call this API.
2MPXSetCANParamConfigure communication parametersCall this API for each channel you will use. (Communication parameters are configured independently per channel.)
3MPXSetGetLogModeConfigure log acquisition modeCall this API for each channel you will use. (The log acquisition mode is configured independently per channel.)
Channels for which you do not call this API operate in callback mode.
4MPXSetLogCallBackRegister the log callbackFor each channel set to callback mode in step #3, call this API to register the callback function. (You can register different callback functions per channel.)
This API is not required for channels configured for API mode.
5MPXSetLogRequestCallBackRegister the log replay data request callbackRegisters the callback function that is invoked when the MicroPeckerX unit requests log replay data in log replay mode or burst transfer mode (log replay).
6MPXSetLogReplayDataSend log replay dataMicroPeckerX provides two 16,384-byte buffers for log replay data. Call MPXSetLogReplayData twice in advance to transfer up to 32,768 bytes.
If the data size is less than 16,384 bytes, a single call is sufficient.
7MPXLogReplayStartStart log replay mode or burst transfer modeIf you want log replay data transmission to begin immediately after monitoring starts, call MPXLogReplayStart before starting monitoring.
8MPXMonitorStartStart monitoringCall this API for each MicroPeckerX unit in use.
When operating multiple units in sync, start monitoring on all slave units first, then start the master unit.
9MPXGetLog
or
MPXGetLogEx
Retrieve log informationCallback mode does not require calls to MPXGetLog or MPXGetLogEx.
When using API mode and log information is required, retrieve it periodically with MPXGetLog or MPXGetLogEx. A buffer overrun does not affect operation even if you skip retrieval.
10MPXLogReplayStart
or
MPXLogReplayStop
Start or stop log replay mode / burst transfer modeCall MPXLogReplayStart when you want to start sending log replay data during monitoring, and call MPXLogReplayStop when you want to stop sending data.
11MPXSetLogReplayDataSend log replay dataWhen the MicroPeckerX unit requests log replay data, transfer the data as soon as possible based on the information provided by the callback.
If data transfer is delayed, subsequent communication results in a timeout error.
12MPXMonitorStopStop monitoringWhen it is time to stop monitoring, call this API for each MicroPeckerX unit in use.
If multiple units are operating, stop the master unit first, then stop each slave unit in order.
13MPXCloseRelease MicroPeckerX detectionCall this API once when you no longer need to keep the units detected.
To start monitoring again while keeping the units detected, repeat the process from step #2.