Skip to content

Send CAN Messages

Use this script when you want a quick way to transmit a repeated CAN frame for debugging or bench testing.

What it does

The script prompts for the serial CAN adapter, a CAN ID, eight data bytes, and a delay, then keeps sending the frame until you stop it.

How to use it

  1. Run the script.
  2. Enter the COM port or adapter path.
  3. Enter the CAN ID in hex.
  4. Enter the eight payload bytes.
  5. Enter the repeat delay.
  6. Stop the loop with Ctrl+C when you are done.

Good fit for

  • quick message injection during bring-up
  • checking whether a receiver reacts to a specific frame
  • timing checks for a simple repeated CAN signal

Notes

This is the lightweight option. If you want extra validation while entering values, use the stricter repeat sender instead.

Released under the MIT License.