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.03 seconds.

  1. Thread: TeensyCAN

    by tonton81
    Replies
    21
    Views
    950

    it will automatically adjust to the size on the...

    it will automatically adjust to the size on the network.
    lowest DLC to support global nodes, DLC of other node if capable of sending to it's size, otherwise it will use lower size automatically....
  2. Thread: TeensyCAN

    by tonton81
    Replies
    21
    Views
    950

    it's a singleton, either can be used to set the...

    it's a singleton, either can be used to set the ID of local node
  3. Replies
    258
    Views
    17,493

    Here is a new test of transmit interrupts!...

    Here is a new test of transmit interrupts! redesigned starting from the github copy. Transmit interrupts are enforced now, there is no way to disable them without breaking isr & loop handling of TX...
  4. Thread: TeensyCAN

    by tonton81
    Replies
    21
    Views
    950

    TeensyCAN node36 = TeensyCAN(36); if you have...

    TeensyCAN node36 = TeensyCAN(36);
    if you have nodes 2 3 8,

    on node 2, put:
    TeensyCAN node3 = TeensyCAN(3);
    TeensyCAN node8 = TeensyCAN(8);

    on node 3, put:
    TeensyCAN node2= TeensyCAN(2);...
  5. Thread: TeensyCAN

    by tonton81
    Replies
    21
    Views
    950

    check the constructor for node100, that points to...

    check the constructor for node100, that points to the node you want. on the other nodes, you add the nodes you want to control as well. this is a 2way library where they are all multi-master.

    the...
  6. Thread: TeensyCAN

    by tonton81
    Replies
    21
    Views
    950

    basically, Node sends to all nodes, its global,...

    basically, Node sends to all nodes, its global, whereas your specific node100, only receives the data.

    if you do Node.Serial.println("hello world");, all nodes will print that to Serial port.
    if...
  7. Replies
    258
    Views
    17,493

    no dont do that, that puts the controller in HALT...

    no dont do that, that puts the controller in HALT mode, the imask bits need to stop the controller to change them, and you also disabled any mailbox interrupts as well

    events() wasnt used during...
  8. Thread: TeensyCAN

    by tonton81
    Replies
    21
    Views
    950

    yes' correct. well they receive, you need to put...

    yes' correct. well they receive, you need to put something to transmit so the other teensy can see it.

    CAN_message_t msg;
    msg.id = 0x123;
    Can0.write(msg);
  9. Thread: TeensyCAN

    by tonton81
    Replies
    21
    Views
    950

    you need to use FlexCAN_T4 constructor, not...

    you need to use FlexCAN_T4 constructor, not FlexCAN_T4FD, and use CAN1 instead of CAN3

    Also, it's good to run one of the FlexCAN_T4 demos to confirm your connections are good before working on...
  10. Replies
    258
    Views
    17,493

    I reverted the interrupt transmits as it wasn't...

    I reverted the interrupt transmits as it wasn't stable compared to the loop, and made all transmits not able to occupy a mailbox into the TX queue, not just sequential ones. Loopback mode and wake up...
  11. Replies
    258
    Views
    17,493

    yes this is why these are tests for new update...

    yes this is why these are tests for new update later on, thats why I didn't want to touch the repo, I'm a bit busy this week but I'll try to work on it more
  12. Replies
    258
    Views
    17,493

    only reason i moved it was because something was...

    only reason i moved it was because something was throwing off between sequential or remote frames, but that may have been fixed somewhere else or that line was necessary, Im testing 3 types to make...
  13. Replies
    258
    Views
    17,493

    thats weird, I just left the house and it was...

    thats weird, I just left the house and it was working using the 2 sketches posted, ill check it again when i get home from work
  14. Replies
    258
    Views
    17,493

    EDIT, update, can you try this? Seems to work now...

    EDIT, update, can you try this? Seems to work now for sequential and non sequential with no events() in loop(). As for remote frames they seem to be causing their own problem in sequential, so those...
  15. Replies
    258
    Views
    17,493

    lack of traffic you must use events(), it'll...

    lack of traffic you must use events(), it'll receive one and dequeue one or more transmits. without events() the transmits only happen whenever the ISR is firing, like from receptions. otherwise you...
  16. Replies
    3
    Views
    93

    RFP30N06 Logic level mosfets

    RFP30N06

    Logic level mosfets
  17. Replies
    258
    Views
    17,493

    Added your code correction, except rather than...

    Added your code correction, except rather than adding a line I moved:



    txBuffer.pop_front(); /* clear on write */

    code = 0; /* MSADIE - clear code before configuring for new tx...
  18. Replies
    258
    Views
    17,493

    The interrupt needs to be enforced to be on even...

    The interrupt needs to be enforced to be on even if the user hasn't implemented it, otherwise the transmits won't fire from the ISR, and it would break remote frame capability in the ISR since...
  19. Replies
    258
    Views
    17,493

    Just added wake up on traffic support. You can...

    Just added wake up on traffic support.

    You can call:

    asm(" wfi"); in your code to goto sleep. The loop() will stop scrolling after shorting out the CAN lines when the wfi enters sleep. Removing...
  20. Replies
    258
    Views
    17,493

    thanks, I was worried about the weight at first...

    thanks, I was worried about the weight at first on the glass desk, but the back and front legs line up easily on the cross bars under holding the glass, so no pressure on the glass itself, the width...
  21. Replies
    258
    Views
    17,493

    Well finally got my monitor today, first time I...

    Well finally got my monitor today, first time I ordered one online after having a dead one for couple months!

    20156

    Fits perfect on the desk lol.......

    Anyways, I started working on flexcan...
  22. Replies
    258
    Views
    17,493

    You can't set a signed value to a array of...

    You can't set a signed value to a array of unsigned bytes. What you want to do is cast a signed byte to an unsigned byte to the array then at other end you cast back the unsigned byte as a int8_t to...
  23. Thread: TeensyCAN

    by tonton81
    Replies
    21
    Views
    950

    The CAN data is bytes only, you will need to...

    The CAN data is bytes only, you will need to handle the data in the array, splitting up the floats to bytes and back at other end. You could always use the PacketID of the data to identify which...
  24. Replies
    26
    Views
    4,874

    I managed to work on a 4D library that is able to...

    I managed to work on a 4D library that is able to also retrieve live values from LCD's objects, without needing to code in callback. It also doesn't go out of sync either.
  25. Replies
    258
    Views
    17,493

    Supposedly it can wake itself up, I havn't played...

    Supposedly it can wake itself up, I havn't played in that low power field yet, but like I said on cars pins 6 and 14 are the high speed network thats only running when ignition is on, body controller...
  26. Replies
    258
    Views
    17,493

    Can0.setRX() without value reinits the pin to...

    Can0.setRX() without value reinits the pin to default location
    Theoretically the CAN supposed to self wake without user intervention

    Dont rerun the constructor. These are compile time objects, it...
  27. Replies
    258
    Views
    17,493

    More info: 20001

    More info:

    20001
  28. Replies
    258
    Views
    17,493

    The WAKMSK bit is already set in the MCR...

    The WAKMSK bit is already set in the MCR register. It should already work just check the reference manual. Not sure if this applies to this scenario, or if flexcan refers to ANY frame for wakeup, but...
  29. Replies
    1
    Views
    71

    Are you using pins 6 & 14 of the OBD port with...

    Are you using pins 6 & 14 of the OBD port with proper bitrate selected? What library are you running?
    What transceiver are you using?
    How is your wiring setup diagram?
  30. Replies
    258
    Views
    17,493

    That data shows that flexcan is in process of...

    That data shows that flexcan is in process of transmitting in hardware, and not receiving ACK from network, so that leaves 2 only possibilities:

    Baudrate calculation (which i doubt, since you are...
  31. Replies
    258
    Views
    17,493

    msadie is correct, if you start seeing the...

    msadie is correct, if you start seeing the transmit buffers fill but not actually transfer, yet reception works, there is an issue with the transceiver. I have yet no evidence to suspect any software...
  32. Replies
    258
    Views
    17,493

    My tests are ran off the pjrc and skpang breakout...

    My tests are ran off the pjrc and skpang breakout boards, CAN1 is connected to BCAN of vehicle at 125kbps and CAN2 is connected to FCAN of vehicle at 500kbps. Did you check if mailboxStatus()...
  33. Replies
    258
    Views
    17,493

    I reloaded the github release onto my car's T4 to...

    I reloaded the github release onto my car's T4 to make sure it was the latest loaded, and it's still transmitting fine on the bus. I didn't like the faint chirp of the beeper in the back so when...
  34. Replies
    258
    Views
    17,493

    Maybe try simple transmitting code in addition...

    Maybe try simple transmitting code in addition from a receiving sketch to check if their are transfers, if you still cant see any transmits, try printing mailboxStatus() after awhile to see if the...
  35. Replies
    258
    Views
    17,493

    Use a receive demo to make sure your receiving...

    Use a receive demo to make sure your receiving traffic, to make sure transceiver works before transmitting, I was referring to the standby pin on transceiver, if its not held low the traffic may not...
  36. Replies
    258
    Views
    17,493

    Is your Rs pin tied low on the transceiver? When...

    Is your Rs pin tied low on the transceiver? When you say output, do you see any data reception on the bus to confirm your seeing the stream? What pins are you using on T4 for the transceiver?

    I...
  37. Replies
    5
    Views
    116

    Thats because pinMode reconfigures the pin to...

    Thats because pinMode reconfigures the pin to gpio (not serial).
    You can modify the pin register for pullup by enabling the bit but leaving other ones intact, then it will work :)
  38. Replies
    258
    Views
    17,493

    The first mailbox found, iflag or not is...

    The first mailbox found, iflag or not is irrelevant, as long as it is seen as a TX mailbox. If its state is TX_INACTIVE, only then will queue populate it.

    The iflag wont be set on the initial...
  39. Replies
    258
    Views
    17,493

    Events() only queues sequentials. Normal writes...

    Events() only queues sequentials. Normal writes are sent if mailboxes are available. However, we will handle interrupted TX differently. All seq and normal writes are immediately queued. Once the ISR...
  40. Replies
    258
    Views
    17,493

    Ahh but the queue library is FIFO/LIFO, plus it...

    Ahh but the queue library is FIFO/LIFO, plus it also has a feature to pull in-between queues, although thats something I wouldn't touch while mixing loop() with ISR. I could however put normal writes...
  41. Replies
    258
    Views
    17,493

    Sounds good so if we were to be bursting frames...

    Sounds good so if we were to be bursting frames you recommend we let the ISR handle it via an interrupt enabled TX mailbox, and have regular writes use other mailboxes? Or just have sequential...
  42. Replies
    258
    Views
    17,493

    I believe you are transmitting too fast causing...

    I believe you are transmitting too fast causing the transmit errors rising past 128. Check the ESR1 and ECR registers in the datasheet. To me it looks like you are receiving and sending frames, if...
  43. Replies
    258
    Views
    17,493

    This may be better to check ID and datafields: ...

    This may be better to check ID and datafields:


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

    void setup(void) {
    Serial.begin(115200); delay(400);
    pinMode(6,...
  44. Replies
    258
    Views
    17,493

    I am using this code between 2 T4's using CAN3 in...

    I am using this code between 2 T4's using CAN3 in legacy mode, both on PJRC boards. I output the millisec between each frame and I just change the rates of the other T4 sender

    If I send frames at...
  45. Replies
    258
    Views
    17,493

    Thank you I will look into this further this week

    Thank you I will look into this further this week
  46. Replies
    258
    Views
    17,493

    Can you copy your callback but rename the new one...

    Can you copy your callback but rename the new one to

    "ext_output1"

    And disable events() in loop

    Let me know results
  47. Replies
    258
    Views
    17,493

    That doesn't make sense. When I decrypted my door...

    That doesn't make sense. When I decrypted my door locks, heated seats, and climate controls, the bits in the frame was toggled immediately with live screen refreshes, I was able to see it toggle as I...
  48. Replies
    4
    Views
    348

    A weak blank subcall function called from yield()...

    A weak blank subcall function called from yield() could be implemented to retain core configuration. run_from_yield() :)

    It can be teensy specific without breaking backward compatibility with...
  49. Replies
    258
    Views
    17,493

    It's probably timing characteristics of the...

    It's probably timing characteristics of the tranceivers. Never had to dwelve into that field using stock settings. However, in CANFD, some bitrates in the calculations are able to modify the...
  50. Replies
    258
    Views
    17,493

    If you are suggestion running transmits in an...

    If you are suggestion running transmits in an interrupt it is possible, but the ISR handler would need to handle that whenever a transmit interrupt occurs. Yes this is possible but at the same time...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4