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

Search:

Type: Posts; User: CollinK

Search: Search took 0.00 seconds.

  1. Replies
    168
    Views
    83,666

    Can0.available will only be satisfied if you...

    Can0.available will only be satisfied if you actually receive some messages. If you get no messages it'll never be true (well, it returns the number of waiting frames so 0 which is false if no...
  2. Replies
    168
    Views
    83,666

    Yeah, bitwise functionality almost certainly...

    Yeah, bitwise functionality almost certainly doesn't belong in a CAN library but I could write some simple routines and make a header or something that people could download separately. But, you're...
  3. Replies
    168
    Views
    83,666

    What sort of functions are you looking for...

    What sort of functions are you looking for specifically? Would it be helpful to have a function that takes a byte and bit and returns that bit? Or, a byte and a bit range and returns the value...
  4. Replies
    168
    Views
    83,666

    Well, it could be a complex question. My repo at...

    Well, it could be a complex question. My repo at https://github.com/collin80/FlexCAN_Library is up to date with all the latest changes and the API hasn't changed since last you knew so it should be...
  5. Replies
    168
    Views
    83,666

    This same thing happened to TurboStreetCar. The...

    This same thing happened to TurboStreetCar. The most likely explanation is that you have only two devices on the CAN bus, one sending, one receiving. The issue is that the receiving side is not...
  6. Replies
    168
    Views
    83,666

    OK, I think I'm up to date with all of the...

    OK, I think I'm up to date with all of the changes now. I've snagged all the new pictures, updated the code to support the alternate pins on the 3.5 Teensy, added the RTR code just for the heck of it...
  7. Replies
    168
    Views
    83,666

    Thanks, yeah, I did see the changes as I've...

    Thanks, yeah, I did see the changes as I've subscribed to both your and Teachop's repo so I get a notification every time a new commit happens. I'm going to try to get all of the various bits merged...
  8. Replies
    168
    Views
    83,666

    Yes, the example sketches were pretty basic. I...

    Yes, the example sketches were pretty basic. I also have a special sketch for CAN capture and it does set multiple mailboxes. If you get up to really fast reception rates then I could see how a...
  9. Replies
    168
    Views
    83,666

    Yeah, I don't think that the problem is really...

    Yeah, I don't think that the problem is really the HVD230. Such a transceiver should work fine. It just appears that some people have gotten broken chips from some shady place or something. Those...
  10. Replies
    168
    Views
    83,666

    I usually use the HVD232 which is still in the...

    I usually use the HVD232 which is still in the same class, it just doesn't have the listen only functionality. Usually I get my parts from DigiKey or Mouser. I kind of randomly pick one over the...
  11. Replies
    168
    Views
    83,666

    If it won't transmit at all then therein lies the...

    If it won't transmit at all then therein lies the trouble. Setting ACK is a form of transmission so if you can't send you can't ACK and then you'll get the message infinite times. I haven't used the...
  12. Replies
    168
    Views
    83,666

    It is handled by the hardware within the MCU on...

    It is handled by the hardware within the MCU on the Teensy. ACK works like this:

    1. The sender produces a frame and leaves the ACK bit recessive.
    2. The sending node actually listens to the...
  13. Replies
    168
    Views
    83,666

    I just committed a new version of the library....

    I just committed a new version of the library. There are two new things.

    Now listen only mode is supported if you want to use it. But, it's not something I'd recommend you use unless you know...
  14. Replies
    168
    Views
    83,666

    [QUOTE=TurboStreetCar;127935]Well i believe the...

    That's consistent with a bus where frames are not being acknowledged. Quite quickly any sending node is going to run out of buffers.



    There is almost always a way to set the hardware to attempt...
  15. Replies
    168
    Views
    83,666

    The read function is supposed to clear the...

    The read function is supposed to clear the buffer. If it had stopped when you pulled CANH and/or CANL then I would have guessed that you were in listen only mode somehow. On a CAN bus a frame gets...
  16. Replies
    168
    Views
    83,666

    It generally is not advisable to attempt to use...

    It generally is not advisable to attempt to use the CAN hardware without a transceiver. Technically it could possibly work in some circumstances but really the CAN Rx/Tx lines were never meant to be...
  17. Replies
    168
    Views
    83,666

    It doesn't really matter what the directory is...

    It doesn't really matter what the directory is called. The IDE finds the files just the same. The only reason to care about the folder name is so that you know what it is if/when you look at the...
  18. Replies
    168
    Views
    83,666

    Well, there is a copy of the FlexCAN library that...

    Well, there is a copy of the FlexCAN library that gets installed with the Teensyduino files. You can override it by placing my version in your libraries folder contained within your user folder. For...
  19. Replies
    168
    Views
    83,666

    Are you sure you're using my version of the...

    Are you sure you're using my version of the FlexCAN library? The sketch you posted seems to be meant for the other two versions of the library. If you really are using my version then look at the...
  20. Replies
    168
    Views
    83,666

    Yes, I should have tried to compile for 3.2 even...

    Yes, I should have tried to compile for 3.2 even though I don't have one in front of me. I'll put the proper defines around all of the second canbus stuff so that it actually does compile on the...
  21. Replies
    168
    Views
    83,666

    That's not a bad idea. The two examples I...

    That's not a bad idea. The two examples I included both do send. They're both for the Teensy 3.6 and use one CAN bus to send to the other. That way you can see both sending and receiving. But, both...
  22. Replies
    168
    Views
    83,666

    Another fork of FlexCAN

    I was saying to myself "What the world needs is yet another fork of the FlexCAN library" so, I did that.

    https://github.com/collin80/FlexCAN_Library

    This is a fork of a fork (I forked...
Results 1 to 22 of 22