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
    267
    Views
    18,007

    RX and TX? RXQSize() TXQSize() ? still...

    RX and TX? RXQSize() TXQSize() ? still unconventional naming in the arduino field, still deciding :P
  2. Replies
    3
    Views
    59

    no need to write it low, its low by default when...

    no need to write it low, its low by default when set by pinmode to output, maybe try putting volatile asm "dsb" after pinmode?

    EDIT, a resistor like kurt said is recommended, as the pins are in...
  3. Replies
    267
    Views
    18,007

    sure, we just need a name for the function to...

    sure, we just need a name for the function to return size for rx and tx
  4. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    for now, until i figure it out

    for now, until i figure it out
  5. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    yup, queue management issue (with or without...

    yup, queue management issue (with or without interrupt probability)
  6. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    if the lockup is from callback or loop(), serial...

    if the lockup is from callback or loop(), serial prints usually find where the last line locked up. if its from an isr then prints wont work unless you put them in library

    if you are only doing 12...
  7. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    its probably an overlap between nodes that would...

    its probably an overlap between nodes that would need to be fixed, on the reassembly side (receiver). if it locked up, it doesnt tell me if it was an array overlap or a memmove transfer injected to...
  8. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    yeah once they drop off the active list,...

    yeah once they drop off the active list, transfers to them are blocked, the timeouts made me work on that to prevent delays caused by missing nodes by making sure theyre on the list before sending
  9. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    maybe theres an issue with the displacement of 2...

    maybe theres an issue with the displacement of 2 transfers, can you try with only one node to see if it still crashes master?
  10. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    what happens if you use broadcast (Node), does...

    what happens if you use broadcast (Node), does the other slave freeze?
  11. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    not sure, skpang used it to transfer images...

    not sure, skpang used it to transfer images (pictures) over CAN to display on a remote LCD, so that being a higher size of bytes I am thinking its a code issue as well :P
  12. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    check the constructor TX_SIZE, keep it a power of...

    check the constructor TX_SIZE, keep it a power of 2, it's gotta be able to be big enough to support your array size in 8 bit chunks. 8x16 = 128bytes max, have you tried normal one dimensional arrays...
  13. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    yes, correct, for bus self recovery to work it...

    yes, correct, for bus self recovery to work it must see valid frame bits on the bus, which will drop the TX overflow errors and the controller would go back online. There is no command for forced bus...
  14. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    thats normal because with 2 nodes on the bus the...

    thats normal because with 2 nodes on the bus the nodes couldn't self-recover if both went into passive error state, with no other traffic to acknowledge. ideally the bus is not supposed to be shorted...
  15. Replies
    267
    Views
    18,007

    not sure how to approach that, still confused on...

    not sure how to approach that, still confused on your explanation. ohhhhh i see what you are saying, well FIFO for RX receives in order as long as you dont have any RX mbs taking frames from it, then...
  16. Replies
    267
    Views
    18,007

    I'm glad the transmit from ISR is working for...

    I'm glad the transmit from ISR is working for you, that shows progress. I am not too technical on the 1 bit term, or why you need 2 mailboxes for sequential, or which of the 2 would release first,...
  17. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    Serial was implemented, there was more to be...

    Serial was implemented, there was more to be implemented, like remote I2C, SPI, analog, digital pin access. what i liked about the global method is for synchronizing multiple MCU gpio pins over a...
  18. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    yes thats why Node.sendMsg is there, all nodes...

    yes thats why Node.sendMsg is there, all nodes will get it :)
  19. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    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....
  20. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    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
  21. Replies
    267
    Views
    18,007

    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...
  22. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    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);...
  23. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    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...
  24. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    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...
  25. Replies
    267
    Views
    18,007

    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...
  26. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    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);
  27. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    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...
  28. Replies
    267
    Views
    18,007

    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...
  29. Replies
    267
    Views
    18,007

    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
  30. Replies
    267
    Views
    18,007

    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...
  31. Replies
    267
    Views
    18,007

    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
  32. Replies
    267
    Views
    18,007

    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...
  33. Replies
    267
    Views
    18,007

    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...
  34. Replies
    3
    Views
    108

    RFP30N06 Logic level mosfets

    RFP30N06

    Logic level mosfets
  35. Replies
    267
    Views
    18,007

    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...
  36. Replies
    267
    Views
    18,007

    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...
  37. Replies
    267
    Views
    18,007

    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...
  38. Replies
    267
    Views
    18,007

    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...
  39. Replies
    267
    Views
    18,007

    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...
  40. Replies
    267
    Views
    18,007

    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...
  41. Thread: TeensyCAN

    by tonton81
    Replies
    51
    Views
    1,330

    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...
  42. Replies
    26
    Views
    4,937

    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.
  43. Replies
    267
    Views
    18,007

    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...
  44. Replies
    267
    Views
    18,007

    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...
  45. Replies
    267
    Views
    18,007

    More info: 20001

    More info:

    20001
  46. Replies
    267
    Views
    18,007

    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...
  47. Replies
    1
    Views
    82

    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?
  48. Replies
    267
    Views
    18,007

    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...
  49. Replies
    267
    Views
    18,007

    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...
  50. Replies
    267
    Views
    18,007

    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()...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4