Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • ITman496's Avatar
    05-27-2020, 09:02 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Ok, understood. Thank you for all your help! I'll keep an eye on this thread in the meantime and procrastinate developing the communication system in my plane for as long as possible. Please let me know if there...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 08:33 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Ok! Well, on one hand I'm glad to hear I didn't mess any of my code up, on the other hand, I was actually really hoping that I was wrong and the bugs were my fault so then I could just be corrected and keep moving on...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 08:25 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    So.. interesting. I stopped sending dynamic data and instead sent static data in tables, and limited to 2 bytes as you requested. It sends 2 canbus messages per frame for each message, and I do see them sometimes...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 08:06 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    I am currently uncapped sending data from a single node at around 999 transfers of 12 bytes (4 can frames) per second. It's been running for some time now and seems to be working well. I will try to do your...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 08:00 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Just tried putting a repeating serial println in the main loop, it locks up too when a larger transfer comes in. 12 bytes is just my testing, I imagine the maximum will likely be much much larger than that. When one...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 07:36 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Ok! As I want to avoid having a central node be in charge of scheduling, I will switch away from this library and use flexcan directly and break my data up into more, smaller chunks to avoid needing to send large...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 06:43 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    That explains why they recover to their usual speed on the heartbeat led after a little while. So all in all, do you think this is an error in my programming, or a potential bug in the teensyCAN library? Thank you...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 06:29 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Oh yeah that's not a problem. As I said in an earlier post, before I added node 3, I just had node 2 sending 20 byte payloads (5 can bus frames) 100 times per second. I did it for 16 hours by leaving it on overnight. ...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 06:15 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Both slaves are now spamming a lot of received packet data on the their consoles but seem to stay running quite happily. The master still crashes after a dozen or so seconds and displays a huge impossibly sized packet...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 06:08 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Huh the forum appears to have posted some stuff a bit out of order.. I'm breaking everything today :D I will switch both slave nodes to broadcast and see what happens.
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 06:02 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    I upped the TX_SIZE on all 3 sketches to 256 and it lasted a bit longer but eventually, died all the same. Here is my console output on my master before it froze ISR - MB 99 OVERRUN: 0 LEN: 8 EXT: 1 TS: 55007...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 05:56 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Okay, I'll increase it to 128 or 256 on all three and see what happens. Why would the TX affect the master receiving, anyway? I'm not 100% sure how that works.
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 05:41 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Master (receiver, node 1) //THIS IS NODE 1 #include <FlexCAN_T4.h> #include <TeensyCAN.h> bool debugMode = true; //debug mode for extended sniffer data bool heartBeat = false; //heartbeat led
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-27-2020, 05:18 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    I appear to be running into a new issue. I have added a third node and am stress testing the system to see how much traffic it can handle, and I seem to be crashing my master. I can share source code if you think...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-26-2020, 08:33 PM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Interesting. That explains why it recovered even when I rebooted the teensy that was receiving and never transmitting. It must have sent something out of the bus to make the other one come back to life. I'll keep that...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-26-2020, 07:15 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Neat! I've got most of my stuff working now. Do you have any documents or explanations for what you mentioned above, where the nodes can discover each other and see if they are online and offline? I had an...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-25-2020, 06:52 PM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Excellent. Thank you! Is there any other functions this library provides other then sending large packets and the whole node private/broadcast messaging system with acks and whatnot? (and I saw earlier you said I can...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-25-2020, 06:07 PM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Ok, understood! My can transceivers only support up to 1MBPS anyway. What I will likely do is get all 8 nodes set up and see if they can really send all the data to each other or if it will be a speed issue.. ...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-25-2020, 05:19 PM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Oh okay. Man, I'm learning so many new things! Thank you! I'll go scrounge up a third node to try and start really getting this test going. When you were saying about how FD was faster then 2.0.. you mentioned...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-25-2020, 05:02 PM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Okay! How do I set the ID of each node, though? On your slave example as I downloaded from github, this is the start of it: TeensyCAN node100 = TeensyCAN(100); void setup() { Serial.begin(115200);...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-25-2020, 05:20 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    I have data! Woohoo! I guess now my only real question is.. is there any more fleshed out examples for this library? I can see that these two lines decide.. if the packet is being sent to ID 5, globally or ID7,...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-25-2020, 04:37 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Heh. I feel dumb. I got FlexCAN_T4 working! Now to move on to TeensyCAN. For anyone else suffering this fate, take note, it was dumb. I probed the canbus lines with my oscilloscope and was wondering why the...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-25-2020, 03:12 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    I wanted to ask about that, actually. In mcpCAN demos there was a simple set of sketches to be able to transmit and receive on two different arduinos. I think I found the equivalent for FlexCAN_T4, this one: ...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-25-2020, 12:09 AM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Hello! I am having some trouble getting this working. I realized just now, though, that it is because CAN FD only works on port 3, and I am trying to use port 1. I know I can solder wires to the bottom, but I intend...
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-07-2020, 06:18 PM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Sounds good! Thank you! I'm so excited to have found this library. It simplifies so many things I thought I was going to have to do manually by myself!
    51 replies | 1420 view(s)
  • ITman496's Avatar
    05-07-2020, 05:20 PM
    ITman496 replied to a thread TeensyCAN in Project Guidance
    Hello! This library seems absolutely perfect for my project, when I get home from work I'm going to get a few teensys and try it out! I have a few questions that after looking around a bit I didn't see answered in...
    51 replies | 1420 view(s)
No More Results
About ITman496

Basic Information

About ITman496
Location:
NJ, USA
Interests:
Aircraft, Programming, Making
Occupation:
Radio Technician

Statistics


Total Posts
Total Posts
26
Posts Per Day
0.87
Last Post
TeensyCAN 05-27-2020 09:02 AM
General Information
Last Activity
Yesterday 05:30 AM
Join Date
05-07-2020