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

Search:

Type: Posts; User: tonton81

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    92
    Views
    4,915

    The hardware will not pass in corrupted frames,...

    The hardware will not pass in corrupted frames, they are CRC validated, before it hits the software end. If you are curious try reading the data while a OBD tester tool is plugged into the OBD port,...
  2. Replies
    92
    Views
    4,915

    You didn't do anything wrong, perhaps your car is...

    You didn't do anything wrong, perhaps your car is using extended frames and not standard, this can be normal. The OBD responses on 2006+ cars are mostly extended id responses.

    If you are writing...
  3. Replies
    14
    Views
    2,842

    FlexCAN_T4 works on Teensy 3.2, 3.5, 3.6, and 4.0...

    FlexCAN_T4 works on Teensy 3.2, 3.5, 3.6, and 4.0
    You can also use IFCT for Teensy 3.x
  4. Replies
    92
    Views
    4,915

    The clock can be changed using setClock, default...

    The clock can be changed using setClock, default for Teensy 3.x is 16MHz, you can try up to 60MHz on T4

    If there is an error in the setBaudRate function it's been there since the original...
  5. Replies
    92
    Views
    4,915

    CAN2.0 or FD mode? If CAN2.0 you can use 307200...

    CAN2.0 or FD mode?
    If CAN2.0 you can use 307200 for the speed
  6. Replies
    1
    Views
    78

    You mean like the sending struct? ...

    You mean like the sending struct?



    CAN_message_t msg;
    msg.id = 0x123;
    msg.flags.extended = 0;
    msg.len = 8;
    msg.buf[0] = myTemperature;
    Can0.write(msg);
  7. Replies
    63
    Views
    15,419

    Tie a gpio to reset pin ?

    Tie a gpio to reset pin ?
  8. Replies
    9
    Views
    218

    Calling new and delete dynamically will destroy...

    Calling new and delete dynamically will destroy your heap, not recommended for microcontrollers, be careful :)
  9. Replies
    13
    Views
    188

    Try lowering the I2C rate to 100000 and/or try...

    Try lowering the I2C rate to 100000 and/or try the alternate Wire library as a test, as for the wiring we can only assume you followed the site but we can't physically see that until you post pictures
  10. Replies
    426
    Views
    87,163

    Dont know if this also helps, but the time slices...

    Dont know if this also helps, but the time slices of each thread can be changed which affects how long task switching stays in that thread, i had to adjust my time slices when i ran multiple uart...
  11. Replies
    92
    Views
    4,915

    Define reliably? TeensyCAN is using the FD...

    Define reliably? TeensyCAN is using the FD library to distribute 640 byte data with 64byte frames in about 1.5ms constistantly for days. If there is any issues in the FD library I usually respond to...
  12. Replies
    16
    Views
    197

    CAN_message_t msg; msg.len = 8; ...

    CAN_message_t msg;
    msg.len = 8;
    msg.id = 0x321;
    msg.buf[0] = 1;
    msg.buf[1] = 2;
    msg.buf[2] = 3;
    msg.buf[3] = 4;
    ...
  13. Why not just run 2 uarts separately through USB...

    Why not just run 2 uarts separately through USB converters, better yet, use the same UART and dynamically change baudrate, over a single usb to uart adaptor

    Serial1.begin(115200);
    //Do...
  14. Replies
    16
    Views
    197

    If you have it wired to the CAN lines, you can...

    If you have it wired to the CAN lines, you can attempt to plug a simple OBD reader to the ECU to read the freeze frames, then, in your teensy serial monitor, you should be able to see the ECU...
  15. Thread: TeensyCAN

    by tonton81
    Replies
    4
    Views
    383

    TeensyCAN has now gone multi-bus mode! Nodes can...

    TeensyCAN has now gone multi-bus mode! Nodes can be talked to on any or all of the 3 CAN busses on Teensy. Responses to nodes will happen to their appropriate busses. Globals now send to all 3 busses...
  16. Replies
    92
    Views
    4,915

    Thanks for spotting that :) Updated the fix on...

    Thanks for spotting that :)
    Updated the fix on github:
    https://github.com/tonton81/FlexCAN_T4/commit/6cdb2054c46b7ac62c420725e59f5d068575cd1a

    ::events() now updated as well to return 12 bits...
  17. Replies
    14
    Views
    468

    The whole point of the bootloader is not only to...

    The whole point of the bootloader is not only to prevent bricking, but to prevent chinese clones from entering the market via normal hex uploading capabilities....
  18. Use Serial1.begin(115200) to use pins 0 and 1 for...

    Use Serial1.begin(115200) to use pins 0 and 1 for uart, no need for pinMode
  19. Replies
    92
    Views
    4,915

    Try enableFIFOInterrupt()? MB version will...

    Try enableFIFOInterrupt()?

    MB version will ignore your request because MB0 doesnt exist in FIFO mode
  20. Replies
    4
    Views
    139

    Correct, the fan must get it's power from the...

    Correct, the fan must get it's power from the mosfet or transistor, the teensy pin must only allow the signal to tell the mosfet/transistor to turn off or on. There are relay boards and mosfet...
  21. Replies
    92
    Views
    4,915

    #include FlexCAN_T4

    #include <FlexCAN_T4.h>
    FlexCAN_T4<CAN2, RX_SIZE_256, TX_SIZE_16> Can0;

    void setup(void) {
    Serial.begin(115200); delay(400);
    pinMode(6, OUTPUT); digitalWrite(6, LOW); // enable tranceiver
    ...
  22. Replies
    4
    Views
    139

    First you must set the pin to output via...

    First you must set the pin to output via pinMode(pin, OUTPUT);
    Then you can use digitalWrite(pin, HIGH) to turn it on and LOW to turn it off. However, you should NOT source power from the pin...
  23. Replies
    16
    Views
    197

    It's the tranceiver's job to handle the bus...

    It's the tranceiver's job to handle the bus voltage, not the actual teensy pins. You need a canbus transceiver for teensy
  24. Check out the circular buffer example for...

    Check out the circular buffer example for average() usages

    https://github.com/tonton81/Circular_Buffer/blob/master/examples/CB_Calculating_Statiscal_Values/CB_Calculating_Statiscal_Values.ino
    ...
  25. Replies
    92
    Views
    4,915

    Yup, those look to be like alternate pins for CAN1

    Yup, those look to be like alternate pins for CAN1
  26. Replies
    92
    Views
    4,915

    Skpang is correct. CAN3 pins (same ones for 2.0...

    Skpang is correct. CAN3 pins (same ones for 2.0 and FD) are pads underneath the T4. The pads are very small so you need to be good at soldering tiny wires there or opt in for a breakout board, which...
  27. Thread: TeensyCAN

    by tonton81
    Replies
    4
    Views
    383

    New update for TeensyCAN. Node Discovery! The...

    New update for TeensyCAN.

    Node Discovery! The library is able to keep a list of active nodes, their DLC capabilites (receive DLC size max), and their timeout on the network (millis()).
    The...
  28. Why you using a period instead of a comma for...

    Why you using a period instead of a comma for writes? Should be "MB1,msg"

    Filters should be set after mailbox configuration (reject all)

    If using FIFO, MB0-7 dont exist, and using setMB does...
  29. The debug prints? If so, try enabling the lpuart...

    The debug prints? If so, try enabling the lpuart clock, CANFD wont work without lpuart clock enabled....
  30. FlexCAN_T4 also works on Teensy 3.x, but was...

    FlexCAN_T4 also works on Teensy 3.x, but was tested during that time on a Teensy 3.5
  31. Yeah just don't use reset, as per the datasheet:...

    Yeah just don't use reset, as per the datasheet:


    The following registers are reset: MCR (except the MDIS bit), TIMER , ECR, ESR1, ESR2, IMASK1, IMASK2, IFLAG1, IFLAG2 and CRCR. Configuration...
  32. Dont use reset() at all, it will wipe out begin()...

    Dont use reset() at all, it will wipe out begin() configuration. Reset() is not complete yet in the library.
  33. Thread: TeensyCAN

    by tonton81
    Replies
    4
    Views
    383

    Upped to github is a new update to TeensyCAN. USB...

    Upped to github is a new update to TeensyCAN. USB Serial & UART accesses can be called specifically to a node or globally on the network of nodes!

    Node.Serial.println("Hello World!"); // prints to...
  34. Replies
    92
    Views
    4,915

    FlexCAN_T4 readme documentation updated. CANFD...

    FlexCAN_T4 readme documentation updated.
    CANFD mode setBaudRate changed slightly. Two ways of calling:



    FD.setBaudRate(config); /* no printout will occur, with the default listing entry of...
  35. Replies
    6
    Views
    118

    if ( Serial.available() ) { uint8_t...

    if ( Serial.available() ) {
    uint8_t receivedByte = Serial.read();
    if ( receivedByte != lastByte ) {
    //Do Something...
    }
    lastByte = receivedByte; // store the last byte as previous...
  36. Thread: TeensyCAN

    by tonton81
    Replies
    4
    Views
    383

    TeensyCAN

    Here it is! CAN2.0/CANFD Implementation early stages. Redesign of CANquitto. This library has the ability not only to work on CAN2.0 and CANFD, but the payload transfers are automatically adjusted to...
  37. Replies
    92
    Views
    4,915

    FlexCAN_T4 has been updated! Up to 3 raw...

    FlexCAN_T4 has been updated!

    Up to 3 raw outputs are enabled in background for external libraries (you know where this is going.......... :) )
    All reception mailbox has mass enabler for...
  38. Replies
    6
    Views
    118

    After you compare it: myByte == lastByte, or...

    After you compare it:

    myByte == lastByte, or however you wish to compare, then set it to the new value:
    lastByte = myByte;

    Then your code repeats it
  39. Replies
    6
    Views
    118

    A class static/auto or global variable is needed...

    A class static/auto or global variable is needed where you can copy the last byte to and check later on

    Simply can put it before the void setup() line:


    uint8_t lastByte = 0;

    void setup() {...
  40. Replies
    8
    Views
    313

    I don't think you can use the core Serialx...

    I don't think you can use the core Serialx library on a modified single wire bus, you'd need to implement another library to handle it.
  41. Replies
    190
    Views
    15,789

    Yes, thanks for the concern. I hopefully will...

    Yes, thanks for the concern. I hopefully will have finished off the FlexCAN_T4 which would be a successor to IFCT in terms of performance, while maintaining the Teensy 3.x compatibility. If there are...
  42. Its a bad usb cable, try another

    Its a bad usb cable, try another
  43. Replies
    190
    Views
    15,789

    Weird, that register shouldnt do anything except...

    Weird, that register shouldnt do anything except activate the mailbox in hardware, did you try it in another teensy?
  44. Replies
    190
    Views
    15,789

    Thats the register for the code field, so i dont...

    Thats the register for the code field, so i dont see how it gets stuck there, can you print something in serial monitor before and after that line to see if it prints both texts?
  45. Replies
    190
    Views
    15,789

    Does it restore when you properly fix the...

    Does it restore when you properly fix the cables/resistor? The problem is your trying to access the registers despite being in a bus off state. Can you reproduce this between 2 teensies? Also if you...
  46. Replies
    4
    Views
    217

    Serial or i2c is feasable. But you will need to...

    Serial or i2c is feasable. But you will need to handle the serial data to parse the data you need, in i2c/spi you can send/receive data as blocks, like an indiced array ordered, 3rd option is CAN,...
  47. It has nothing to do with my profile picture, no...

    It has nothing to do with my profile picture, no need to judge me based on a picture of the work i did on my car... Why is it obscure? Just because I modified my car makes me incapable of writing a...
  48. Replies
    92
    Views
    4,915

    Setlistenmode effectively disconnects the writes...

    Setlistenmode effectively disconnects the writes from the network, another option would be putting the controller into freezemode (like a paused state), indefinately, until switched back to normal...
  49. Replies
    9
    Views
    306

    HardwareSerial* ports[] = { Serial1, Serial2,...

    HardwareSerial* ports[] = { Serial1, Serial2, Serial3 };
    ports[0]->available();
    ?

    Untested but if theyre all in same class just create array of pointers
  50. Replies
    26
    Views
    1,231

    Msg.timestamp? It uses same structure, its a 16...

    Msg.timestamp? It uses same structure, its a 16 bit rollover counter
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4