Show Posts
Pages: [1]
1  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: March 01, 2013, 10:30:19 am
Hi AllerD,

You're right... it's out of specs but frame format is 64 bytes and I'm supposed to received 13 frames of 64 bytes each one. In fact, by changing MAX_CAN_FRAME_DATA_LEN to 64 I'm received all bytes and reading the first frame. I guess ECU is using some higher level of protocol... I'll have to investigate. In any case, I'll download your library to test the extended version.

Hi Palliser,

I've already tested to change the Mailbox ID register to CAN_MID_MIDvB and everything worked the same way, I mean, I received the first frame as before but I don't know how to get the other 12 frames...

Whatever, I'll have to investigate further before continuing.

Thanks for your help!
2  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: March 01, 2013, 06:11:03 am
Hi guys,

After being successful in the test between CAN bus 0 and 1 in Arduino Due, I've tried to receive messages from an ECU. This ECU sends 13 CAN frames of 64 bytes each one. I'm able to read the first frame but I have no idea about how to read the rest of them. By reading, I guess that the ECU is working with extended frame so I've been trying to mask the whole ID (CAN_ID and frame_ID), setting uc_id_ver=1 and some other options but nothing worked... Am I right with the extended frame CAN bus version? Has anybody experience on that? Is this library working with this kind of CAN bus?

Thanks!!
3  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: February 26, 2013, 04:19:24 am
Hi Palliser!

Thx for your help. Now it's working!!! I guess I had downloaded a wrong repository because I've already did without good results but I downloaded the repo again and now everything is compiling.

Gracias Pana!!
4  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: February 25, 2013, 08:05:30 am
Hi guys! Congrats! You've done an excellent job!!!

I wanted to try the CAN library so I've downloaded them, compile it and tried but I get stuck in some compiling issues.

I've tried both examples. The first one fails due to not finding sysclk.h file and the second one fails showing the following errors:

Quote
In file included from can_example.ino:2:
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:46: error: ISO C++ forbids declaration of 'Pio' with no type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:46: error: expected ';' before '*' token
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:48: error: 'uint32_t' does not name a type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:51: error: ISO C++ forbids declaration of 'Pio' with no type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:51: error: expected ';' before '*' token
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:53: error: 'uint32_t' does not name a type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:56: error: 'uint32_t' does not name a type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:57: error: 'uint32_t' does not name a type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:58: error: 'uint32_t' does not name a type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:60: error: 'uint32_t' does not name a type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:61: error: 'uint32_t' does not name a type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:63: error: 'uint32_t' does not name a type
C:\Users\jordi\Documents\arduino-can\hardware\arduino\sam\libraries\CAN/sn65hvd234.h:64: error: 'uint32_t' does not name a type
can_example:23: error: 'CANRaw' does not name a type
can_example.ino: In function 'void loop()':
can_example:56: error: 'SN65HVD234_Init' was not declared in this scope
can_example:57: error: 'SN65HVD234_SetRs' was not declared in this scope
can_example:58: error: 'SN65HVD234_SetEN' was not declared in this scope
can_example:60: error: 'SN65HVD234_DisableLowPower' was not declared in this scope
can_example:61: error: 'SN65HVD234_Enable' was not declared in this scope
can_example:76: error: 'CAN' was not declared in this scope
can_example:118: error: 'SN65HVD234_EnableLowPower' was not declared in this scope
can_example:119: error: 'SN65HVD234_Disable' was not declared in this scope

I guess there is something related with the header files from Atmel microprocessor but I'm not sure about it and I haven't been able to download them and try.

Can anybody give me a hint? Thx in advance!!!
Pages: [1]