CAN-Message with EB018 CAN-Board

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
P455E
Posts: 2
Joined: Thu Oct 06, 2016 9:56 am
Contact:

CAN-Message with EB018 CAN-Board

Post by P455E »

Hey guys,

I want to send a simple message from one Arduino Uno to another one. I´m using two Arduino Uno R3 which are connected with the EB093 Shield and the EB018 CAN-Board.
The code just initialises the CAN, reads the switches, send a Buffer with this information and show a LED at EB018. What I´m not sure about, is the setting of the Patch-System and how to set the Jumper-Wires. The Board has 5V, but there is no Signal sended by the Transceiver and no LED blinking.

Actually it looks like this:
- 2-/INT
- 3-SDO
- 4-SDI
- 5-SCK

The CAN is connected to PortB Pin 2, 3, 4 ,5 (Pin2 has been connected to PortE Pin 6 at the beginning).
You can find my fcfx-file in Posted Attachments to check.

Can anyone help me?
Would be very nice if you have an idea, what i´m doing wrong.
Thank you!
Attachments
CAN2tx.fcfx
(11.26 KiB) Downloaded 267 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: CAN-Message with EB018 CAN-Board

Post by Benj »

Hello,

Please can you try this and let me know how you get on. I've changed the CAN component connections slightly for you.

The EB018 board must be in jumper settings C and 2, connected to Port D8-D13,

Because of the weirdness of Arduino ports you will need to wire across the connections on the EB018 board using single core wire as follows.

2 - /CS
3 - SDO
4 - SDI
5 - SCK

/INT can be left unconnected.

If everything is ok then the two LEDs on the EB018 should flash alternatively.
CAN2_Test.fcfx
(12.67 KiB) Downloaded 259 times
let us know how you get on.

P455E
Posts: 2
Joined: Thu Oct 06, 2016 9:56 am
Contact:

Re: CAN-Message with EB018 CAN-Board

Post by P455E »

CANtx.fcfx
TX
(9.3 KiB) Downloaded 270 times
Thank you Benj, the LEDs are flashing now and the code is running! :) But there is still no CAN-Message sended and i think that the Options for Tx and Rx buffers aren´t correct.
This isn´t described in the examples I found.
How I have to set them in Transmitter and Receiver?


Sorry for that annoying questions, but I´m working on it for weeks now and don´t know whats going wrong.
Thanks you.
Attachments
CANrx.fcfx
RX
(9.23 KiB) Downloaded 268 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: CAN-Message with EB018 CAN-Board

Post by LeighM »

Hi
Your RX Mask and Filter settings don't match your TX ID
So I would suggest first changing the RX Buffer 0 Settings from "Use Mask and Filter" to "Accept All" in your CANrx project
Leigh

Post Reply