Microsoft Visual C++ Sample Program
Microsoft Visual C++ Monitor Program
Screen Layout
| # | Item | Description |
|---|---|---|
| 1 | Start button | Starts monitoring when clicked. |
| 2 | Stop button | Stops monitoring when clicked. |
| 3 | Log display area | Displays received log information. Up to 100 log entries are retained. When exceeded, older logs are cleared first. If monitoring is stopped and started again, all previous logs are cleared. For displayed items, see Log Display Details. |
Log Display Details
| Item | Description |
|---|---|
| msec | Displays timestamp (milliseconds). |
| usec | Displays timestamp (microseconds). |
| Dir | Displays log direction. Rx: received log, Tx: transmitted log |
| IDfmt | Displays ID format. Std: standard ID, Ext: extended ID |
| ID | Displays CAN ID in hexadecimal. |
| DL | Displays data length (1 to 64). |
| Data | Displays data (D1 to D64) in hexadecimal. Data is comma-separated. |
Error Handling
The program treats the following as errors, shows an error dialog, and exits.
- MicroPeckerX could not be recognized when the program starts.
- API call failed when starting/stopping monitoring or during monitoring.
Microsoft Visual C++ Simulation Program
Screen Layout
| # | Item | Description |
|---|---|---|
| 1 | Start button | Starts monitoring and transmits periodic preset frames every 1 second. |
| 2 | Stop button | Stops monitoring and periodic preset frame transmission. |
| 3 | Log display area | Displays transmitted/received log information. Up to 100 log entries are retained. When exceeded, older logs are cleared first. If monitoring is stopped and started again, all previous logs are cleared. |
| 4 | ChangeData button | Increments (+1) data (D1 to D64) of the periodic preset frame. |
| 5 | SlotSend button | Sends the event-transmission preset frame. |
| 6 | DirectSend button | Sends the direct-transmission preset frame. |
Log Display Details
| Item | Description |
|---|---|
| msec | Displays timestamp (milliseconds). |
| usec | Displays timestamp (microseconds). |
| Dir | Displays log direction. Rx: received log, Tx: transmitted log |
| IDfmt | Displays ID format. Std: standard ID, Ext: extended ID |
| ID | Displays CAN ID in hexadecimal. |
| DL | Displays data length (1 to 64). |
| Data | Displays data (D1 to D64) in hexadecimal. Data is comma-separated. |
Preset Frames
The contents of each preset frame are as follows.
| Frame Type | Slot | ID | DL | Data (Hex) (*1) | |||
|---|---|---|---|---|---|---|---|
| Format | CAN ID | D1 | ... | D64 | |||
| Periodic preset frame | 0 | Standard ID | 100H | 64 | 10 | ... | 10 |
| Event-transmission preset frame | 1 | Standard ID | 200H | 64 | 20 | ... | 20 |
| Direct-transmission preset frame | - | Standard ID | 300H | 64 | 30 | ... | 30 |
*1: D1 to D64 are all the same value.
Error Handling
The program treats the following as errors, shows an error dialog, and exits.
- MicroPeckerX could not be recognized when the program starts.
- API call failed when starting/stopping monitoring or during monitoring.