Skip to main content

CAN Monitoring Sequence

In the flow below, solid-line boxes indicate required processing, and dashed-line boxes indicate optional processing. means call multiple times based on number of MicroPeckerX units, and means call multiple times based on total number of channels in use.

Sequence Table

#APIProcessDescription
1MPXOpenRecognize MicroPeckerXConnect all target MicroPeckerX units to PC first, then call this API once.
2MPXCANSetParamSet communication parametersCall for each channel in use (parameters can be configured independently per channel).
3MPXSetGetLogModeSet log acquisition modeCall for each channel in use (mode can be set independently per channel).
Channels not configured by this API run in callback mode.
4MPXSetLogCallBackSet callback for log acquisitionCall for each channel set to callback mode in #3 (different callback functions can be set per channel).
Not required for channels in log-acquisition API mode.
5MPXMonitorStartStart monitoringCall for each MicroPeckerX unit in use.
For synchronized operation of multiple units, start monitoring on all slave-mode units first, then on the master-mode unit.
6MPXGetLog
or
MPXCANGetLogEx
Acquire log informationIf log-acquisition API mode is set, periodically call this API per channel. If not called, buffer overrun may occur, but operation itself is not affected.
Not required in callback mode.
7MPXMonitorStopStop monitoringCall at stop timing for each MicroPeckerX unit in use.
When multiple units are running, stop the master-mode unit first, then stop slave-mode units sequentially.
8MPXCloseRelease MicroPeckerX recognitionCall once to release recognized units.
If you want to restart monitoring while still recognized, restart from step #2.