Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dual_CAN.ino error? #11

Open
wants to merge 79 commits into
base: master
Choose a base branch
from
Open

Conversation

radioelf
Copy link

@radioelf radioelf commented Sep 7, 2016

Hi.
error: 'AA' was not declared in this scope
byte txBuf0[] = {AA,55,AA,55,AA,55,AA,55};
byte txBuf1[] = {55,AA,55,AA,55,AA,55,AA};
changed to:
byte txBuf0[] = {0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55};
byte txBuf1[] = {0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA};

error: 'tx0Buf' was not declared in this scope
CAN0.sendMsgBuf(0x1000000, 1, 8, tx0Buf);
CAN1.sendMsgBuf(0x1000001, 1, 8, tx1Buf);
changed to:
CAN0.sendMsgBuf(0x1000000, 1, 8, txBuf0);
CAN1.sendMsgBuf(0x1000001, 1, 8, txBuf1);

coryjfowler and others added 30 commits January 28, 2015 20:25
Created the example for this library, there are drawbacks though.
This version of the library does not allow the sketch to see if a received CAN message is standard or extended in length, I suggest using the sub-development branch if you are serious about bridging.

UNTESTED! I HAVE NOT TESTED THIS
Excel document that helps determine the configuration register values.
Made serial output more useful as a CAN sniffing tool and to demonstrate using the extra bits of the ID.
Mega2560 bootloaders and can cause timeouts during upload
Triple bang is a special command for the Mega2560 boot loader.
There was an extra sendMsg() in one of the sendMsgBuf() functions.
User can enable and disable One-Shot mode from the sketch using the library...
User can enable and disable One-Shot mode from the sketch using the library...
User can enable and disable One-Shot mode from the sketch using the library...
Loop back example to test a single CAN interface.
ilium007 and others added 30 commits August 5, 2019 20:56
Fixed hex char's in array; fixed txBuf0, txBuf1 typo
Added interrupt pin defines and tested locally
Static emulation of OBD ECM responses.
Improved sleep functionality
Guard DEBUG_MODE to allow control from the main program.
Fixed small spelling mistakes.
Allow clkout to be selected in CNF3 register.
The Send timeout was based on an incrementing register and a while loop that ran at system execution speeds with no delays.
I have changed it over to use the Arduino micros() function.
The Send timeout was based on an incrementing register and a while loop that ran at system execution speeds with no delays.
I have changed it over to use the Arduino micros() function.
Maintain the deterministic timeout for sendMsg().
Fixed typo...
SPI-Bus selectable in constructor
Fixing issues caused by #27
Fixing issues caused by #27
- fix setMsg to respect the len
- try to prevent buffer overflows and always limit to MAX_CHAR_IN_MESSAGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.