-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAN-BUS #87
Comments
Try to use Give that a try and report back. |
david, thanks. I am waking Teensy by ERR output from TJA1055. That pin indicates start of frame on bus. I have used MsTimer2, which is ISR based to flash LED to see, if, when Teensy freezes, my program is not stuck somewhere. Both MsTimer2 stops. By the way, when i tried hibernate sketch hibernate_all_wakeups, i am not able to wake the Teensy. So that is why i did not try hibernate, but deepSleep. |
I'm a bit behind in these issues as of late, (kids school things). I'm hoping to get back to Snooze soon and I'll be taking a look at this. |
Many thanks. Maybe if i call detachInterrupt on those two pins, it might help. Then reattach it before entering sleep. |
I am using Arduino 1.8.9 and Teensyduino 1.5.3 |
Seems like this approach helped: digital.pinMode(TJA_MASTER_ERR, INPUT, FALLING); |
@dufi2profor I'm using the TI SN65HVD230, but I just had a look at the TJA1005 and it looks interesting - do you mind sharing a schematic of how you have it connected to the T4 with the wakeup and sleep functions? |
Sure, i will draw the schema in KiCad and share then. I would not use control of sleep functions on those transcievers if i did not want the lowest current as possible and when all three TJAs are "sleeping", it makes current drop by at least 3 mA in total, So my current setup, when using deepSleep draws 5 mA, which is okay in car i think. |
Actually, I just saw the 1055 limited to 125Kb/s baud rate, I'll stick with the SN65HVD230 in this case as I need 500Kb/s. |
Yes, that is the only drawback of TJA, but i need it for my infotainment project in my Peugeot. Had been using that MCP2551, but only as listen only mode on my Peugeot "body" can which is running at 500 Kb/s. Here is schematic diagram of what i have on breadboard now. |
Hello,
i plan to use Teensy 4.0 as an gateway between two devices in my car.
I would like to ask, if You plan to implement CAN bus RX pin as an wake pin, or should i use digital pin driver?
Thank You
The text was updated successfully, but these errors were encountered: