canfd_set
Purpose:
-
Set a CAN message to be sent at a specified interval using the CanFD driver.
Enter:
-
canfd_set <CanMessageID|MessageName> <SendInterval> [index] [-c=n] [name=…] [count=…]
Where:
-
CanMessageId
or
MessageNameSpecify either:
- The message ID from the *.dbc file.
- The message name from the *.dbc file.
SendInterval
Specify the delay time between messages in milliseconds. The default is 10 milliseconds.
index
Optional. Specify an index to send repeated messages at different times. The default is 0.
-c=n
Optional. Specify the channel number: 0 or 1.
name Optional. Specify the register name. The default value is used if not specified. count
Optional. Specify the number of messages to send. The default is infinite.
Example:
-
canfd_set 100 50
Send the message on the default channel.canfd_set 100 1000 -c=1
Send the message on the second channel.canfd_set 100 1000 name=CanDbc2
Send the message on the default channel with a CanDbc task started with the register name “CanDbc2”.canfd_set 100 1000 name=CanDbc2 count=3
Send only 3 messages on the default channel with a CanDbc task started with the register name “CanDbc2”.
Notes:
-
Channel number must be 0 or 1. SendInterval behaves as follows: 0 disables sending, values between 1 and 19 send the message once then disable, and values 20 or greater send the message every specified milliseconds.