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
    1,192
    Views
    248,454

    the error info has been added there if you check...

    the error info has been added there if you check the source file, as per another user request, it has it's own callback
  2. Replies
    1,192
    Views
    248,454

    yes it can be done dynamically the baudrates

    yes it can be done dynamically the baudrates
  3. Replies
    1,192
    Views
    248,454

    well it does support self-recovery, you could...

    well it does support self-recovery, you could just set the baudrates in listen-only mode and check if the callback fires. callbacks only fire for valid receptions
  4. Replies
    1,979
    Views
    354,692

    i can only assume the neopixels temporarily...

    i can only assume the neopixels temporarily disable interrupts, which would interfere with simuletaneous transfers
  5. Replies
    30
    Views
    10,834

    that's only if you define the pin in the wdt...

    that's only if you define the pin in the wdt config, otherwise no.
    it's purpose is to hold the line till the main processor resets if teensy is a sub processor, where after the main resets the power...
  6. Replies
    1,192
    Views
    248,454

    you can disable and reenable fifo by default...

    you can disable and reenable fifo by default it'll accept all
    then filter afterwards as needed
  7. Replies
    1,192
    Views
    248,454

    I see you setting K bus filter but not setting up...

    I see you setting K bus filter but not setting up the K bus, unless you posted partial code, can't help much. the filters are only updatable while the bus is deactivated, so that is fine and does as...
  8. Replies
    1,192
    Views
    248,454

    you can bitshift the unsigned bytes then cast as...

    you can bitshift the unsigned bytes then cast as needed
    for example
    RPM:
    byte 4 and 5
    int value = buf[4] << 8 | buf[5];
  9. Replies
    1,192
    Views
    248,454

    I have FIFO running on 3 busses at same time...

    I have FIFO running on 3 busses at same time without loss. Are you using interrupts or loop method or polling?

    FIFO clears when all messages are read
  10. 31035 programming resistor on haltech also...

    31035
    programming resistor on haltech


    also if you're asking about a custom configuration, there should be max 2 resistors in a bus 120ohms each furthest device. if you do remove the 120 ohm...
  11. you'll need to check your haltech if it has...

    you'll need to check your haltech if it has resistors built in, and if it does they should have a way to disable it in programming
  12. The CAN lines are on the OBD port, yes they go...

    The CAN lines are on the OBD port, yes they go thru a gateway too. Could be 1 or 2 other busses that's on. You have also a body CAN bus, which is nice, because it has data available while the vehicle...
  13. you wont slow them down unless you're flooding...

    you wont slow them down unless you're flooding the bus, even at 50ms gaps you should be fine, but recommend you be lenient
  14. there should be 2x 120 ohm on that PCB ```This...

    there should be 2x 120 ohm on that PCB
    ```This tiny Teensy add-on board features dual CAN-Bus transceiver circuits, including termination resistors```
    1x 120 ohm per bus, most likely the ones on...
  15. Replies
    148
    Views
    13,377

    that is a cool trick, but extra latency you...

    that is a cool trick, but extra latency you wouldn't physically notice in the loop() 🙂
  16. dont add terminations in a vehicle, the vehicle...

    dont add terminations in a vehicle, the vehicle is already terminated.

    if devices you have added have resistors, remove their resistors.

    if your cluster goes limp, your CANL & CANH lines are...
  17. Replies
    2
    Views
    317

    1000kbps with no terminations? that'll never...

    1000kbps with no terminations? that'll never work. MAYBE at 125kbps, MAYBE, but definately nothing will work at >125kbps without terminations.
  18. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    last update only supports SPI, not SPI1, so...

    last update only supports SPI, not SPI1, so currently no support is implemented in last update
  19. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    yup you are correct the tdie bit on the 1062 is...

    yup you are correct the tdie bit on the 1062 is used because there was an issue using the rdie. i dont remember what but it took a long time to work out the kinks and qwirks just to get it stable...
  20. Replies
    1,192
    Views
    248,454

    try enabling the interrupt at the end. whenever...

    try enabling the interrupt at the end. whenever you set a MB the filters and interrupts reset.
  21. Replies
    1,192
    Views
    248,454

    you already posted this as an issue on github....

    you already posted this as an issue on github. Don't set a filter then configure the mailbox. That is backwards. also post what mailboxStatus() shows
  22. Replies
    1,979
    Views
    354,692

    just load master on one and slave on the other,...

    just load master on one and slave on the other, if you dont see communication try swapping the MISO/MOSI lines around
  23. Replies
    1,979
    Views
    354,692

    make sure Teensy 4.1 is selected in arduino if...

    make sure Teensy 4.1 is selected in arduino if not already done for that error

    also do not use the GND pin located next to pin 0, you need to have both 4.1s connected with the GND pin located next...
  24. Replies
    1,192
    Views
    248,454

    1) it should provided the payload is 6 bytes or...

    1) it should provided the payload is 6 bytes or less, provided the first 2 bytes are passes as an isotp header. if you prefer not receiving those single frames whivh can exist during debugging, i...
  25. Replies
    1,192
    Views
    248,454

    yes send both as normal frames, the isotp is...

    yes send both as normal frames, the isotp is there just to assemble messages in stream
  26. Replies
    1,192
    Views
    248,454

    you need to send that frame, then send the flow...

    you need to send that frame, then send the flow control after, if you don't send the flow control frame the ecu will not send out the full isotp frame, and if the full isotp frame is not sent out you...
  27. Replies
    1,192
    Views
    248,454

    effectively that writes the 8 bytes as a payload...

    effectively that writes the 8 bytes as a payload in isotp format (2 frames for payload)

    so, 8 bytes as payload plus isotp header
    to send that just as a frame itself use Can1.write(msg)
  28. Replies
    1,192
    Views
    248,454

    this is just an example of sending and receiving,...

    this is just an example of sending and receiving, you can change it up to your purpose as needed
  29. Replies
    1,192
    Views
    248,454

    the hardware retransmits automatically, even if...

    the hardware retransmits automatically, even if you call an abort on the mailbox it may or may not transmit a garbage frame, and if your code is retransmitting over a loop you'll just be enabling it...
  30. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    have you tried swapping around the MISO and MOSI...

    have you tried swapping around the MISO and MOSI wires?
  31. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    can you try SPI_MSTransfer_T4 library example,...

    can you try SPI_MSTransfer_T4 library example, that should work just for sanity check, because if it doesn't, it's most likely a connection or cross-wire issue.
    check if the demo works on both your...
  32. Replies
    1,192
    Views
    248,454

    yes that will work, you could also just send it...

    yes that will work, you could also just send it 10ms after the request
  33. Replies
    1,192
    Views
    248,454

    isotp server acts same way like ecu

    isotp server acts same way like ecu
  34. Replies
    1,192
    Views
    248,454

    ahh i see. the way the library handles isotp...

    ahh i see. the way the library handles isotp between teensies is it sends the complete isotp frames. So for reception that is not complete, an isotp first frame is discarded if overridden as needed...
  35. Replies
    1,192
    Views
    248,454

    isotp plugin doesn't use mailboxes specifically,...

    isotp plugin doesn't use mailboxes specifically, as the data comes in it from the controller goes to the background reassembly queue until it is complete, until which it it then fires the user...
  36. Replies
    1,192
    Views
    248,454

    the isotp is an addon, you can use both as needed...

    the isotp is an addon, you can use both as needed in same sketch
  37. Replies
    1,192
    Views
    248,454

    well thats for isotp. for pid requests you can...

    well thats for isotp.

    for pid requests you can just use the following (edited as needed)



    CAN_message_t msg;
    msg.id = random(0x1,0x7FE);
    for ( uint8_t i = 0; i < 8; i++ )...
  38. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    it all depends on how long your interrupts are,...

    it all depends on how long your interrupts are, and the speeds of the SPI obviously especially when pushing data. if the slave interrupt is not ready to receive because of another interrupt you may...
  39. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    this library setups only one LPSPI as slave. Even...

    this library setups only one LPSPI as slave. Even if you managed to setup 2 or more slave on LPSPI you'd need to be able to manage the 2 ports simuletaneously, and if interrupts are involved, good...
  40. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    that wouldnt be possible, u cant have 2 masters...

    that wouldnt be possible, u cant have 2 masters talking to one slave,
  41. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    2 slaves? use 1 or 2 SPI ports on master should...

    2 slaves? use 1 or 2 SPI ports on master should work, the slave is fixed only to one bus
  42. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    its one byte/word at a time, not grouped. if you...

    its one byte/word at a time, not grouped. if you want the slave to send more data you need to basically send dummy bytes/words to push the data out of the slave, so you need to handle that as needed
  43. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    yes but the master end *should* work on any other...

    yes but the master end *should* work on any other arduinos, you'd have to test as it uses the standard SPI library for master. The slave end is only working for the Teensy 3.x/LC/T4.x end. The patch...
  44. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    SPI_MSTransfer_T4 is a 2-way daisy-chainable data...

    SPI_MSTransfer_T4 is a 2-way daisy-chainable data transfer utility. It includes the slave and master headers and source files, with simple examples.

    if you prefer to keep a teensy4.x as master...
  45. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    if you are using a T4.x master there is a slight...

    if you are using a T4.x master there is a slight bug in the DSE gpio bits, which is fixed in SPI_MSTransfer_T4. Other master controllers don't seem to have this issue. Also for your common ground...
  46. Replies
    1,192
    Views
    248,454

    what i always do (my own preference of course) is...

    what i always do (my own preference of course) is setup a scoped millis() near the action you want to do, so in the loop i would put:



    void loop() {
    static uint32_t coolant_timer = millis();...
  47. Replies
    1,192
    Views
    248,454

    you shouldn't need to strip mailboxes down to one...

    you shouldn't need to strip mailboxes down to one using msg.seq = 1, it will only output to the absolute first mailbox. also you don't need events() in loop if you want direct firing interrupts, but...
  48. Replies
    1,192
    Views
    248,454

    are you using pins 0 & 1 for CAN2? are you using...

    are you using pins 0 & 1 for CAN2?
    are you using level shifters? teensy is 3.3v
    is the Rs pin driven low?
  49. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    only thr t4.x masters needs specific dse bits...

    only thr t4.x masters needs specific dse bits set, other masters work fine
  50. Thread: SPISlave_T4

    by tonton81
    Replies
    99
    Views
    13,289

    the master 4.x need a patch for the DSE bits,...

    the master 4.x need a patch for the DSE bits, check out the commits for SPI_MSTransfer_T4, this only affects the master, just make sure your ground is the one next to the 5v pin (not near pin 0)
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4