I don't think it matters which Teensy you use, they will all need a transceiver chip to operate on a can bus network. The built-in can chip is not the same as a transceiver.
Type: Posts; User: keith-i
I don't think it matters which Teensy you use, they will all need a transceiver chip to operate on a can bus network. The built-in can chip is not the same as a transceiver.
You still need a transceiver to 'receive' the signal and convert it to Teensy levels. There are lots out there that do it. SKPang make a useful canbus breakout board with a Teensy on top which makes...
The challenge:
To take consecutive readings from bytes 2 and 3 of frame 0x480 of can bus and calculate average fuel consumption. Bytes 2 & 3 give a continuous incremental reading of fuel consumed in...
I would appreciate seeing your code too.
Here's what I used. Bear in mind that I had tapped into the can lines feeding the dash so did not need to send a request to the can gateway to start receiving data. I was also specifically looking...
I have successfully read the can bus on a VW engine using collin80's flex can example code. The only thing I am aware of is making sure you don't use the default flexcan library that comes with the...
I see from Tobbera's screenshot he has a timestamp against each can frame. Is there a way to get a timestamp for each frame as I need to calculate some averages between readings and therefore need a...
So does it matter what name you use or is it just rxmsg to help recognise it as a receive function. Could you say use txmsg instead of msg?
Ok thanks, so presumably if you had inMsg in you struct you'd use inMsg.id; etc.
Why might you need two containers such as msg, rxmsg then
Thanks, but it's still a little over my head. Can you explain 'struct' to me?
I'm trying to learn some of the Flexcan features and would like to understand what this line in the global section actually does in laymans terms.
static CAN_message_t msg;
It is sometimes as...
Kind people, would you mind scanning over my code to make sure there's nothing obviously amiss. It compiles fine but I've yet to actually get hold of a Teensy 3.6 to try it out. The variable...
@Ceetee - thanks the bracket omission was the problem
@tonton81 - I put .setListenOnly after .begin and all seems to be working now thanks
Aha, you could be right. Thanks
Well I'm making some progress. I tried the Can0.setListenOnly but that just seemed to stop all reception too. Perhaps I had it in the wrong place in my code.
void setup(void)
{
delay(5000);...
Thanks Darcy. From the data sheet that would work with HVD230 but not HVD231. Guess which one my breakout board uses!
Thank you Dave. I also saw the reference to it not being implemented but also saw the bit in the .cpp file.
Any thoughts on where I should place the command? Before Can.begin or after? Or maybe...
Ok, since my previous post I've made some progress in understanding this all a bit more. One outstanding question though is how to set listen only mode. I just want to silently sniff the bus and...
Hi tonton81
Thank you for your helpful advice. I have searched lots of sample code but cannot find any examples of how or where to use the .read() function. Can you perhaps help me here.
Also, I...
Hi Tobbera and tonton81
I'm glad I found your thread as it is very similar to what I am trying to achieve. Canbus is a steep learning curve and the last few hours have started to make my head...
I'm a relative newcomer to Arduino but have succesfully completed a couple of projects. I'm now moving on to a can bus project and need some help getting started with FlexCAN (on a Teensy 3.6).
My...
Hi
I'd really appreciate some help in setting up a mask and filters for a project I'm working on. I've read various posts and looked at example code but I'm getting lost on some of the terminology...