Skip to main content

Sequences and Status Transitions

This chapter describes the execution sequences for this product and how the MicroPeckerX status transitions.

Sequences and Status Transitions

The overall sequences for this product are shown below. Solid boxes indicate required processing, while dashed boxes indicate optional processing. A ☆ symbol means the API must be called once for each MicroPeckerX unit in use, and a ★ symbol means the API must be called once for each total channel across all units.

Monitoring Sequence

Sequence Table

#APIProcessingDescription
1MPXOpenDetect MicroPeckerX unitsConnect all MicroPeckerX units you want to use to the PC, then call this API once.
2MPXSetCANParamConfigure communication parametersCall this API for each channel you plan to use (communication parameters can be configured independently per channel).
3MPXSetGetLogModeConfigure the log acquisition modeCall this API for each channel you plan to use (the log acquisition mode can be configured independently per channel).
Channels for which this API is not called operate in callback mode.
4MPXSetLogCallBackConfigure the callback function for log acquisitionCall this API for each channel that was set to callback mode in step 3 (different callback functions can be configured per channel).
This API is not required for channels configured for API mode.
5MPXMonitorStartStart monitoringCall this API for each MicroPeckerX unit you plan to use.
When running multiple units in sync, start monitoring on all units operating in slave mode first, then start the units operating in master mode.
6MPXGetLog
or
MPXGetLogEx
Retrieve log dataIf API mode is configured, call this API regularly for each channel to retrieve log data (if log retrieval is delayed, a buffer overrun occurs).
This API is not required when operating in callback mode.
7MPXMonitorStopStop monitoringWhen you need to stop monitoring, call this API for each MicroPeckerX unit in use.
When operating multiple units, stop the unit running in master mode first, then stop the units running in slave mode in order.
8MPXCloseRelease detected MicroPeckerX unitsCall this API once to release all detected units.
If you want to start monitoring again while keeping the units detected, repeat the procedure starting from step 2.

Simulation Sequence

Sequence Table

#APIProcessingDescription
1MPXOpenDetect MicroPeckerX unitsConnect all MicroPeckerX units you want to use to the PC, then call this API.
2MPXSetCANParamConfigure communication parametersCall this API for each channel you plan to use (communication parameters can be configured independently per channel).
3MPXSetGetLogModeConfigure the log acquisition modeCall this API for each channel you plan to use (the log acquisition mode can be configured independently per channel).
Channels for which this API is not called operate in callback mode.
4MPXSetLogCallBackConfigure the callback function for log acquisitionCall this API for each channel that was set to callback mode in step 3 (different callback functions can be configured per channel).
This API is not required for channels configured for API mode.
5MPXSetSlotConfigure slot information before monitoringConfigure slot information as needed.
6MPXMonitorStartStart monitoringCall this API for each MicroPeckerX unit you plan to use.
When running multiple units in sync, start monitoring on all units operating in slave mode first, then start the units operating in master mode.
7MPXGetLog
or
MPXGetLogEx
Retrieve log dataWhen operating in callback mode, MPXGetLog and MPXGetLogEx do not need to be called.
When operating in API mode, call MPXGetLog or MPXGetLogEx periodically to retrieve log data if needed.
Note that even if a buffer overrun occurs because log data was not retrieved, it does not affect operation.
8MPXChangeSlot
or
MPXSendSlot
or
MPXDirectSend
Configure slot information during monitoring / request slot transmission / send a frameChange slot information or transmit data as needed.
9MPXMonitorStopStop monitoringWhen you need to stop monitoring, call this API for each MicroPeckerX unit in use.
When operating multiple units, stop the unit running in master mode first, then stop the units running in slave mode in order.
10MPXCloseRelease detected MicroPeckerX unitsCall this API once to release all detected units.
If you want to start monitoring again while keeping the units detected, repeat the procedure starting from step 2.

Log Replay Sequence

Sequence Table

#APIProcessingDescription
1MPXOpenDetect MicroPeckerX unitsConnect all MicroPeckerX units you want to use to the PC, then call this API.
2MPXSetCANParamConfigure communication parametersCall this API for each channel you plan to use (communication parameters can be configured independently per channel).
3MPXSetGetLogModeConfigure the log acquisition modeCall this API for each channel you plan to use (the log acquisition mode can be configured independently per channel).
Channels for which this API is not called operate in callback mode.
4MPXSetLogCallBackConfigure the callback function for log acquisitionCall this API for each channel that was set to callback mode in step 3 (different callback functions can be configured per channel).
This API is not required for channels configured for API mode.
5MPXSetLogRequestCallBackConfigure the callback function for log replay data requestsSets the callback function used when the MicroPeckerX unit requests log replay data while running in log replay mode or burst transfer mode (log replay).
6MPXSetLogReplayDataSend log replay dataMicroPeckerX has two 16,384-byte buffers for log replay data. Call MPXSetLogReplayData twice in advance to transfer up to 32,768 bytes of data.
If the data size is less than 16,384 bytes, a single call is sufficient.
7MPXSetLogReplayTriggerConfigure log replay trigger conditionsConfigure the conditions for starting log replay transmission as needed.
8MPXLogReplayStartStart transmission for log replay or burst transfer modeIf you want log replay transmission to start immediately after monitoring begins, call MPXLogReplayStart before starting monitoring.
9MPXMonitorStartStart monitoringCall this API for each MicroPeckerX unit you plan to use.
When running multiple units in sync, start monitoring on all units operating in slave mode first, then start the units operating in master mode.
10MPXGetLog
or
MPXGetLogEx
Retrieve log dataWhen operating in callback mode, MPXGetLog and MPXGetLogEx do not need to be called.
When operating in API mode, call MPXGetLog or MPXGetLogEx periodically to retrieve log data if needed.
Even if a buffer overrun occurs because log data was not retrieved, operation is not affected.
11MPXLogReplayStart
or
MPXLogReplayStop
Start or stop transmission in log replay or burst transfer modeCall MPXLogReplayStart to begin sending log replay data during monitoring, or MPXLogReplayStop to stop transmission.
12MPXSetLogReplayDataSend 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 function.
If transferring log replay data is delayed, subsequent communication may time out.
13MPXMonitorStopStop monitoringWhen you need to stop monitoring, call this API for each MicroPeckerX unit in use.
When operating multiple units, stop the unit running in master mode first, then stop the units running in slave mode in order.
14MPXCloseRelease detected MicroPeckerX unitsCall this API once to release all detected units.
If you want to start monitoring again while keeping the units detected, repeat the procedure starting from step 2.