You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on neoVI fire 2 device embedded CCIF. I found the callback function Spy_EveryMessage() is not triggered with there is message on CAN bus. The following is the code snippet I used for testing. The screen shot is the result. The count100 is always 0 although there are other CAN messages.
Please help on this issue. Thanks.
int count100 = 0;
void Spy_EveryMessage(GenericMessage * p_Msg)
{
count100++;
}
void Spy_EveryLoop(unsigned int uiCurrentTime)
{
// TODO: add something you want to do every millisecond
static int cnt = 0;
cnt++;
if (cnt > 100)
{
cnt = 0;
GenericMessage msg = { 0 };
msg.iID = 0x125;
msg.iNumDataBytes = 8;
msg.btData[1] = 1;
msg.btData[2] = 2;
msg.btData[3] = 3;
msg.btData[4] = 4;
msg.btData[5] = 5;
msg.btData[6] = 6;
msg.btData[7] = count100;
// test for iNetwork number
for (size_t i = 0; i < 100; i++)
{
msg.btData[0] = i;
msg.iNetwork = i;
GenericMessageTransmit(&msg);
}
}
}
The text was updated successfully, but these errors were encountered:
Hello,
I am working on neoVI fire 2 device embedded CCIF. I found the callback function Spy_EveryMessage() is not triggered with there is message on CAN bus. The following is the code snippet I used for testing. The screen shot is the result. The count100 is always 0 although there are other CAN messages.
Please help on this issue. Thanks.
The text was updated successfully, but these errors were encountered: