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. Replies
    661
    Views
    58,010

    this? #include CAN_message_t...

    this?



    #include <IFCT.h>

    CAN_message_t msg;

    void setup() {
    Can0.setBaudRate(125000);
  2. Replies
    661
    Views
    58,010

    try using the FIFO with interrupts example so you...

    try using the FIFO with interrupts example so you can see what the responses are, then try to send the message with byte0 as 1 and byte 1 as 0 and repeat send in loop with delay(5), see what it...
  3. Replies
    661
    Views
    58,010

    1 then 0 workes because on the chart, Online in...

    1 then 0 workes because on the chart, Online in green is for CAN, because you were sending 1 then 1, you actually disabled canbus so the normal voltage would be output, Offline meant no canbus...
  4. Replies
    661
    Views
    58,010

    did you read last line of the xlsx? :) ...

    did you read last line of the xlsx? :)




    The rectifier can operate in two states:
    Off-line is when there is no CAN communication (i.e. standalone operation). This occurs on...
  5. Replies
    661
    Views
    58,010

    well you need the manual for it then, i tried...

    well you need the manual for it then, i tried googling and came up with this:
    https://github.com/craigpeacock/Huawei_R4850G2_CAN/blob/main/Protocol.xlsx

    the IDs dont match what your sending or...
  6. Replies
    661
    Views
    58,010

    thats a different id and doesnt correlate to your...

    thats a different id and doesnt correlate to your sends, is the device sending you that? what is the device?
  7. Replies
    661
    Views
    58,010

    have you checked with a can bus analyzer to see...

    have you checked with a can bus analyzer to see if data is going out? or try another can-equipped bus just to see if you can read the bus (using FIFO example). If you can't read the bus don't expect...
  8. Replies
    661
    Views
    58,010

    No thats the way it sends, something wrong in...

    No thats the way it sends, something wrong in your setup. if IFCT and FlexCAN_T4 both don't work it'd definately not the code :)
  9. Replies
    661
    Views
    58,010

    MCP2551 is a 5V transceiver, you need to make...

    MCP2551 is a 5V transceiver, you need to make sure the communication is done at 3.3V or you risk damaging the pin on teensy. Or look for a 3.3V transceiver
  10. Replies
    661
    Views
    58,010

    if you dont read them they will stay full....

    if you dont read them they will stay full. reception and transmission have different mailboxes and dont depend on each other. You should try printing mailboxStatus() every couple seconds then, if it...
  11. Replies
    661
    Views
    58,010

    Is your CAN line properly terminated? what...

    Is your CAN line properly terminated? what happens if you put can1.events() in the loop()?
  12. Replies
    661
    Views
    58,010

    ahh okay sorry Teensy 3.x doesn't use setClock,...

    ahh okay sorry Teensy 3.x doesn't use setClock, 4.x only.

    you need to put that msg.flags.extended with your message you wanna send. put it under your msg.id = 0x108180fe;
  13. Replies
    661
    Views
    58,010

    msg.flags.extended = 1; this must be set...

    msg.flags.extended = 1;

    this must be set BEFORE writing, or else your extended ID will truncate to a standard ID and it will not be the one you wanted for your device

    also try adding in setup:...
  14. Replies
    661
    Views
    58,010

    it looks like you are flooding the bus with...

    it looks like you are flooding the bus with writes, are you sure the device can process the data that fast? usually on cars we need to space the transmissions to a device at like 10ms, but your loop...
  15. Replies
    21
    Views
    403

    is it possible the voltage at the usb is...

    is it possible the voltage at the usb is unstable? are you powering from VIN? There used to be old Alpha power supplies that would fry computer parts.. 😆
  16. Replies
    21
    Views
    403

    do you have high definition pictures of both...

    do you have high definition pictures of both sides of the PCB of both boards?
  17. if you want a schematic of usb-c skpang has...

    if you want a schematic of usb-c skpang has breakout boards for T4.x canbus, they use usb-c and/or 12v car input
  18. charging devices have power profiles for usb-c, a...

    charging devices have power profiles for usb-c, a protocol must be communicated to allow switching to higher voltages if supported by the adaptor. power is defaulted to 5v on connection and unless...
  19. it doesnt matter as you are still limited to the...

    it doesnt matter as you are still limited to the 500mA current max
  20. Tri-state is not a CS issue unless you have both...

    Tri-state is not a CS issue unless you have both CS' asserted. The issue is at MISO, some chips don't tri-state that line and it fights with the other slave that is ran in parallel. tri-state buffers...
  21. Replies
    661
    Views
    58,010

    volatile without events(), doesn't matter with...

    volatile without events(), doesn't matter with events()
  22. Replies
    661
    Views
    58,010

    if you don't use events(), message reception is...

    if you don't use events(), message reception is fired directly to callbacks. I too use CAN button counting for OEM keyfob to control windows and sunroof, obviously you need to count them not in the...
  23. Replies
    18
    Views
    386

    i use a RaspPi 8xmcp23s17 breakout board on...

    i use a RaspPi 8xmcp23s17 breakout board on Teensy4, I only needed to run 6 wires between teensy and the breakoutboard to get 128gpio support at 10mhz
  24. Replies
    661
    Views
    58,010

    mailbox holds one frame only, FIFO holds 6

    mailbox holds one frame only, FIFO holds 6
  25. Replies
    661
    Views
    58,010

    also if a mailbox gets a similar frame in other...

    also if a mailbox gets a similar frame in other than it's own in filter mode, an overrun would occur and the frame would be overwritten. example without filters is, if all the mailboxes fill up...
  26. Replies
    2
    Views
    122

    so you want the CAN on 29 and 30 or 3 & 4? to set...

    so you want the CAN on 29 and 30 or 3 & 4? to set pins as input you must set them as input

    pinMode(pin, INPUT)
  27. Replies
    661
    Views
    58,010

    mailboxes are like a drop box queue, each one can...

    mailboxes are like a drop box queue, each one can hold one receive (or transmit) message, the others wait in line to grab the next one. FIFO (rx only) is 6 messages deep, in reception order....
  28. Replies
    661
    Views
    58,010

    oh good you got it working

    oh good you got it working
  29. Ouch, Strings....... Did you try to comment out...

    Ouch, Strings....... Did you try to comment out all Serial2* calls and see if it freezes? that will rule out serial....
  30. Replies
    661
    Views
    58,010

    voltage seems about right, are the pins maybe...

    voltage seems about right, are the pins maybe reversed?
  31. Replies
    661
    Views
    58,010

    check mailboxStatus(), if all of your TX...

    check mailboxStatus(), if all of your TX mailboxes fill up, you have a bad physical connection, miswire, termination issue, worse case scenario, bad transceiver
  32. that or have the 5v drive a transistor or mosfet...

    that or have the 5v drive a transistor or mosfet to ground the teensy pin
  33. Replies
    7
    Views
    358

    that would be good to have when checking someone...

    that would be good to have when checking someone for fever at entrances and their temperatures are high
  34. Replies
    661
    Views
    58,010

    make sure you have the chip set to normal mode,...

    make sure you have the chip set to normal mode, theres pins that have pullups and pulldowns on that IC and if it's not in normal mode it won't work, @msadie has the same chip as you and claims it...
  35. Replies
    16
    Views
    376

    rule out a PC issue, try another PC

    rule out a PC issue, try another PC
  36. Replies
    570
    Views
    9,847

    With SPI on T4, you can swap MISO and MOSI pins...

    With SPI on T4, you can swap MISO and MOSI pins around via the CR register
  37. you should feed it in your regular code loop and...

    you should feed it in your regular code loop and not a timer, the watchdog has it's own callback should your software freeze up, the callback will be fired so you can do whatever you want there...
  38. longer SPI transactions, like continuous data...

    longer SPI transactions, like continuous data flow? I don't know much about the DMA but I think it's not good for continuous transfers?
  39. Replies
    570
    Views
    9,847

    there could maybe be more micromods in different...

    there could maybe be more micromods in different teensies in future? who knows, but make it specific for the 4.x?



    #if defined(ARDUINO_TEENSY_MICROMOD) && defined(__IMXRT1062__)
  40. Replies
    4
    Views
    247

    pretty good for bench testing too

    pretty good for bench testing too
  41. Replies
    661
    Views
    58,010

    have you tried different clocks? 500k shouldnt...

    have you tried different clocks? 500k shouldnt have issues unless the bus has very specific timings, changing the clock will calculate a different timing even though speeds are same. On the FD end...
  42. Replies
    10
    Views
    437

    The alarm one is working as well! I set the alarm...

    The alarm one is working as well! I set the alarm for 10 seconds:


    #include <Watchdog_t4.h>
    #include <Snooze.h>

    WDT_T4<WDT1> wdt;

    SnoozeUSBSerial usb;
    SnoozeTimer timer;
  43. Replies
    661
    Views
    58,010

    I *think* you wan't to pass an object, but in...

    I *think* you wan't to pass an object, but in templates the objects are not easily passable to functions. However, thats why a base class exists so FlexCAN_T4 can also do it's tasks in background...
  44. Replies
    10
    Views
    437

    Ok, I had to rush out to work today which is why...

    Ok, I had to rush out to work today which is why I said I'll be on this later. I reverted the changes and fixed the library, watchdog is firing at 1second timeout resets if i dont feed it now so...
  45. Replies
    10
    Views
    437

    I think the alarm is resetting the T4.0, I am...

    I think the alarm is resetting the T4.0, I am using the timer and it is working correctly with the latest commit to WDT_T4:
    https://github.com/tonton81/WDT_T4


    Teensy 4.0/4.1 is same processor,...
  46. Replies
    10
    Views
    437

    the suspend function enables it on watchdog...

    the suspend function enables it on watchdog register but i think the deepsleep has to stop the clock it uses as well. I am not sure what clocks deepsleep turns off, or if the wdt one is still active...
  47. windows 7 has a known USB driver bug, posted...

    windows 7 has a known USB driver bug, posted somewhere on the forum several times

    https://www.pjrc.com/teensy/troubleshoot.html
  48. Replies
    15
    Views
    444

    String(zahl) ? why are you using strings? use...

    String(zahl) ? why are you using strings? use character arrays, uses less resources without the heap destructions
  49. Replies
    1
    Views
    121

    write(buffer, size)

    write(buffer, size)
  50. Replies
    12
    Views
    490

    Program mode? you mean reflashing teensy? You can...

    Program mode? you mean reflashing teensy? You can always use an external pin to "feed" the watchdog, or even trigger the reset() call
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4