Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: keith-i

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    182

    I don't think it matters which Teensy you use,...

    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.
  2. Replies
    16
    Views
    182

    You still need a transceiver to 'receive' the...

    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...
  3. Calculating fuel consumption averages from can bus data

    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...
  4. I would appreciate seeing your code too.

    I would appreciate seeing your code too.
  5. Here's what I used. Bear in mind that I had...

    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...
  6. I have successfully read the can bus on a VW...

    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...
  7. Replies
    26
    Views
    1,204

    I see from Tobbera's screenshot he has a...

    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...
  8. Replies
    7
    Views
    314

    So does it matter what name you use or is it just...

    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?
  9. Replies
    7
    Views
    314

    Ok thanks, so presumably if you had inMsg in you...

    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
  10. Replies
    7
    Views
    314

    Thanks, but it's still a little over my head. Can...

    Thanks, but it's still a little over my head. Can you explain 'struct' to me?
  11. Replies
    7
    Views
    314

    Flexcan - what does this line do?

    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...
  12. Replies
    167
    Views
    63,639

    Kind people, would you mind scanning over my code...

    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...
  13. Replies
    167
    Views
    63,639

    @Ceetee - thanks the bracket omission was the...

    @Ceetee - thanks the bracket omission was the problem
    @tonton81 - I put .setListenOnly after .begin and all seems to be working now thanks
  14. Replies
    167
    Views
    63,639

    Aha, you could be right. Thanks

    Aha, you could be right. Thanks
  15. Replies
    167
    Views
    63,639

    Well I'm making some progress. I tried the...

    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);...
  16. Replies
    167
    Views
    63,639

    Thanks Darcy. From the data sheet that would work...

    Thanks Darcy. From the data sheet that would work with HVD230 but not HVD231. Guess which one my breakout board uses!
  17. Replies
    167
    Views
    63,639

    Thank you Dave. I also saw the reference to it...

    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...
  18. Replies
    167
    Views
    63,639

    Ok, since my previous post I've made some...

    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...
  19. Replies
    26
    Views
    1,204

    Hi tonton81 Thank you for your helpful advice. I...

    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...
  20. Replies
    26
    Views
    1,204

    Hi Tobbera and tonton81 I'm glad I found your...

    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...
  21. Basic help needed understanding can bus and FlexCAN

    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...
  22. Replies
    167
    Views
    63,639

    Hi I'd really appreciate some help in setting up...

    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...
Results 1 to 22 of 23