Тёмный

Tesla CAN Bus - Quick Exploration 

Ingineerix
Подписаться 42 тыс.
Просмотров 34 тыс.
50% 1

CAN (Controller Area Network) is used extensively on all Teslas and almost all modern vehicles. Here is a quick under 20 minute look at what it is and how it works.
Sorry for the "rough edges", this is my first shot at editing to get the camera/laptop views. I forgot to switch the cam view back a few times, but I think it conveys the point well still. It took about 2 hours to edit, even though it only was about 20 minutes of video. I still did the video 100% unscripted and in one take, so at least that reduces the editing workload. =)
Wikipedia CAN article:
en.wikipedia.o...
How twisted pair works:
en.wikipedia.o...
SCCM (Steering Column Control Module) aka Clockspring video:
• Tesla Teardowns - Why ...
SavvyCAN software:
www.savvycan.com/
Wikipedia Hexadecimal article:
en.wikipedia.o...
Article on the CAN DBC:
www.csselectro...
Low-Cost CAN to USB interface on Amazon:
amzn.to/3CY16Ur
Support my Channel:
www.paypal.com...
My other videos:
/ ingineerix

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 201   
@nickandersonco
@nickandersonco 2 года назад
I would love a 'best practices' type video for designing and implementing a CAN device. Even at a high level. You're awesome, and thanks for these videos!
@Mari0o0o
@Mari0o0o 2 года назад
That was a quick turnaround on the CAN bus video you mentioned you’ll do in your previous video, 6 hours ago haha
@Ingineerix
@Ingineerix 2 года назад
That's because I had already shot it, and just needed to do the editing which took forever and I screwed it up in several places too. =)
@Miata822
@Miata822 2 года назад
Takes about an hour to watch a 19 minute video when in the middle I get sidetracked by reading the development board docs (C8051F500DK on Mouser). Good video.
@Ingineerix
@Ingineerix 2 года назад
If you want to dabble with CAN on a microcontroller, I suggest something like one of these to start with: www.macchina.cc/catalog/a0-boards/a0-under-dash www.olimex.com/Products/IoT/ESP32/ESP32-EVB/open-source-hardware copperhilltech.com/esp32-wifi-bluetooth-classic-ble-can-bus-module/ www.tindie.com/products/voltlog/canlite-esp32-can-development-board/ All of these use the Espressif ESP32 which is supported by the Arduino IDE, so it's easy to get started. (Also supports wifi!)
@Miata822
@Miata822 2 года назад
@@Ingineerix Thanks! Edit: Oh, I've used those. Thinking of developing a CAN controlled HVAC system for an industrial application, but avoiding the costly over-featured products I have encountered on the market. Still under a non-compete for a bit, but getting ready :)
@_chip
@_chip 2 года назад
I'd be interested in a short demo video on LIN!
@Ingineerix
@Ingineerix 2 года назад
It's coming!
@stairstoeternity
@stairstoeternity 2 года назад
I like the simplification of something this complex.Thank you for everything you are doing.This is the perfect way of presenting information.
@danielhermanus6909
@danielhermanus6909 2 года назад
LIN video please! I'm an Automation student at the DHBW Mannheim in Germany with you can probably guess which company. It's amazing to hear you explain the practical side of the theory we study in university and how the theory is used in the cars I love
@Ingineerix
@Ingineerix 2 года назад
Coming!
@2ftpmarco
@2ftpmarco 2 года назад
thanks for making these !
@byronlovesdrifting1
@byronlovesdrifting1 2 года назад
The ev and Tesla community would be so much better served if they watched this channel instead of Munroe. Actual useful knowledge not just pandering to people who think they understand manufacturing. I just got a job as an EV service technician and it's 100% because of you and channels like this that I was able to build enough knowledge to demonstrate on my resume and in my interviews. Thankful for the people that share their knowledge and try to educate others now I have my dream job
@bobqzzi
@bobqzzi 2 года назад
You have a knack for clear, succinct explanation. Nice job
@witoldgrabowski9263
@witoldgrabowski9263 2 года назад
I guess, your compact, all-in-one, videos, can prove very useful, to great many people, (who already know, or, who don't know a lot more, about theoretical considerations), for variety of reasons. Certainly, you present some of the important aspects, of varied key systems, from appropiately selected, across-the-board-useful, well pieced together and thought-through, perspectives. Thank you.
@Ingineerix
@Ingineerix 2 года назад
Thanks!
@Madmid74
@Madmid74 2 года назад
CRC is cyclic redundancy check, not code ;) Thanks for the vid.
@qorje
@qorje 2 года назад
Good video! Looking forward for the LIN version.
@Ingineerix
@Ingineerix 2 года назад
Coming soon!
@jgeorge6081
@jgeorge6081 2 года назад
Absolutely the most interesting Tesla related RU-vid channel. So much better than the folklore quality info elsewhere.
@mfx1
@mfx1 2 года назад
The twisting is to improve coupling between the differential data lines so that any noise picked up is ideally coupled equally into both wires making removal of the noise at the differential receiver more effective.
@alexanderkenway
@alexanderkenway 2 года назад
Dude you're killing it with the content lately. Hope you're not burning yourself out
@Ingineerix
@Ingineerix 2 года назад
No, but suggestions help!
@BearsOnASubmarine
@BearsOnASubmarine 2 года назад
I got a chuckle out of your brilliant use of the info cards. Comedic timing!
@Ingineerix
@Ingineerix 2 года назад
Yeah, I would have added more, but YT has a limit!
@randycarter2001
@randycarter2001 2 года назад
The reason for the twisted pair and terminator resistors is related to transmission line theory. The CAN bus wiring is a transmission line. When designing your projects treat the CAN as a transmission line.
@jeffnisewanger8260
@jeffnisewanger8260 2 года назад
Very interesting discussion about CAN bus. Thanks!
@loowit.siberia
@loowit.siberia 2 года назад
looks like a very reliable, hearty bus... 1mbit is plenty for moving register data from an asic or device... the voltage differential reminds me of old LVD SCSI and the priority tag in the CAN frame is a technique used in lossless ethernet... the CAN data enumeration/decoding is some impressive hacking too... i'll watch this vid at least 2X :)
@ClockworksOfGL
@ClockworksOfGL 2 года назад
I tried to find the original quote, but IIRC, JB Straubel referred to CANbus as “the most advanced technology of 1987” or something along those lines. I’ll post the original if I find it.
@_chip
@_chip 2 года назад
Thank you so much. Such a great little demo.
@mikeselectricstuff
@mikeselectricstuff 2 года назад
Are there any established conventions or standards on CAN ID allocation, message handling etc., or does every manufacturer do their own thing? Also would be interested in the gateway functions in most cars to hadle message passing between different buses.
@dzidmail
@dzidmail 2 года назад
Except heavy trucks, everyone does their own.
@SKPang
@SKPang 2 года назад
Heavy truck uses the SAE J1939 standard. Marine uses the NMEA2000 standard. All based on CAN.
@voltlog
@voltlog 2 года назад
And on top of what's included in the CAN spec, manufacturers also like to encode aditional protocols that would otherwise be outside the standard. Like VW has TP = transport protocol running on the CAN bus.
@Ingineerix
@Ingineerix 2 года назад
No, there is not for passenger cars/trucks/SUVs, etc. Manufacturers do their own thing, and the CAN definitions are considered "secret". They do not ever release them, even to authorized service centers.
@tesla_tap
@tesla_tap 2 года назад
Another great video! Do you offer or sell the Tesla CAN database you've built up for SavvyCAN? I'v done some CAN bus reverse engineering and it's quite time consuming to figure out the various bits so I'm very impressed with the work you've done.
@robertcheezem9119
@robertcheezem9119 Год назад
Great video! I’m just starting to learn about my Tesla and I am finding the information a great starting point. Thanks
@puffpio
@puffpio 2 года назад
Would be great to see the LIN video as well (I know nothing about it) Most people (myself included at first) who have an understanding of computers and networking might say 'why not just use ethernet cables, its good enough for computers'. The advantage CAN has is what is pointed out here: its 2 wires twisted together and all devices can just tap into the same length of wires to talk to each other. Compared to ethernet where each device kind of need its own wire to connect to a central hub, and ethernet is like 8 wires. So a bigger savings in terms of cable weight and cost. I do hope non critical assemblies or sub-assemblies can switch to bluetooth or similar. imagine all the wiring in each door (window, power locks, any other buttons there) collecting the signals together and then wirelessly communicating to the brain of the car
@Discostew2
@Discostew2 2 года назад
An advantage of Ethernet is the higher data rate. CAN generally has a lower data rate.
@koeniglicher
@koeniglicher 2 года назад
10BASE2 ethernet (10 MBit/s) would be the same: 2 wires (in 1 coaxial cable), devices tapping into it in a bus like fashion, one collision domain. You are referring to 10BASE-T or 100BASE-T (star structure, 2 pairs=4wires) and 1000BASE-T (4 pairs=8 wires) as used in desktop or data center environments. Industrial ethernet standards however (like BroadR Reach, also used in Tesla vehicles) in contrast reduce the need for wiring (single twisted pair) and increase robustness at the expense of data rate. Still it's way faster than CAN bus.
@Ingineerix
@Ingineerix 2 года назад
Cost is the main driver. It would be cost-prohibitive to implement ethernet on all the small devices inside a modern car. There's no need for the speed requirement, and ethernet does not have a priority mechanism like CAN. Same with adding wireless transceivers to every device. You still need to send power, so why not add one more wire or 2 and not have to worry about the extra cost and unreliability of wireless? Doesn't make sense, and imagine what happens when the RF noise floor gets untenable?
@Ingineerix
@Ingineerix 2 года назад
Cost. Adding a full ethernet stack to run something simple like a power window motor doesn't make sense. The BoM cost of that motor controller would go up by 3000%, and reliability would go down. BroadRreach is only used where that kind of bandwidth is needed, and only to/from complex systems, usually running a full OS stack.
@puffpio
@puffpio 2 года назад
Agreed, later on I thought about ‘if wireless all you need to run is a power wire’…but then if you do that you can just use LIN over power and maintain that simplicity I wonder if there are instances where the cost equation tilts the other way of taken into account labor cost of manufacturing
@cstalt
@cstalt 2 года назад
Such quick content! What is your background that gives you all this experience?
@Ingineerix
@Ingineerix 2 года назад
I am an EE. I have had an Engineering Consulting business for over 30 years, and more recently I am also part of a startup making electric vans: maxwellvehicles.com/
@gordontyler9317
@gordontyler9317 2 года назад
Can you show how to splice into the Tesla CAN bus? I believe there's something behind the console where you can tee in? Any cheap USB dongles for it?
@Ingineerix
@Ingineerix 2 года назад
A quick web search will show this.
@thanadthasainak8547
@thanadthasainak8547 Год назад
Many knowledge here. Thank you very much for your clip.🥳
@nikolapro7468
@nikolapro7468 2 года назад
Just donated. Appreciate the information you share!
@charlierojas6425
@charlierojas6425 2 года назад
Your videos are informative and well explained, thanks. Keep em' coming
@justinhealey-htcohio3798
@justinhealey-htcohio3798 2 года назад
AMAZING CONTENT ♥️ THANK YOU!
@LawpickingLocksmith
@LawpickingLocksmith 2 года назад
Thanks! You made Amazon sell in record time.
@meganote
@meganote Год назад
Very good. Thanks!
@georgepelton5645
@georgepelton5645 2 года назад
Great video! I vote for more like it.
@Ender_Wiggin
@Ender_Wiggin 2 года назад
Nice i love it! this is perfect for First robotics kids
@augustinasbimbiris2702
@augustinasbimbiris2702 2 года назад
Thank you. Useful content. I want to know more, keep making content like this.
@pcb7377
@pcb7377 Год назад
Спасибо за видео!
@rkan2
@rkan2 2 года назад
Nice video - I request some sort of collab with what Damien Maguire is doing with his 3rd party controllers for EV conversions of gas vehicles. Basics of hacking a some driveunit? i'm eagerly waiting for him to figure out 3rd party CCS as that is still quite elusive for EV conversions.
@spiralbrain
@spiralbrain 2 года назад
Great Video! Thanks. Would you be able to tell me if this USB cable shows up as a serial device? If so, can a cheap car scanning/cable be used with Savvy CAN?
@Ingineerix
@Ingineerix 2 года назад
No, it does not. SavvyCAN supports a lot of devices, but not all.
@TheOriginalEviltech
@TheOriginalEviltech 2 года назад
Teslas CAN bus, CAN truck, CAN train, CAN even rocket.
@schlott1970
@schlott1970 2 года назад
Brilliant video
@markb159
@markb159 2 года назад
Great video sir!
@Putersdcat
@Putersdcat 2 года назад
For the non-Americans, the blue things are called wire nuts, they are a quick way to make temporary connections. Temporary unless it works. 😉
@Ingineerix
@Ingineerix 2 года назад
Yeah, I should have mentioned that. I often use Wagos now for temp connections, but it's hard to beat a wirenut on these thin wires!
@otterburn
@otterburn 2 года назад
Very enjoyable video and I also enjoyed your tear down of this very elegantly engineered item. Just one question - do you know what plug you used to connect the cables to this unit ? I’d like to see if I can explore this too. Thanks in anticipation.
@frankdelao4067
@frankdelao4067 Год назад
One of the things Tesla and other car makers have done are make light bulbs a part of can bus. Makes finding burnt out bulbs easy for a tech, expensive for the customer.
@Ingineerix
@Ingineerix Год назад
Tesla doesn't use light bulbs.
@frankdelao4067
@frankdelao4067 Год назад
@@Ingineerixthey have puddle lights on the bottom of the doors, lights on each side of the trunk. All these are on can bus and Tesla has told me the replacements don’t report to the system. The mobile mechanic suggested saving the old lights ( in my glove box) as they are $35 each.
@Ingineerix
@Ingineerix Год назад
@@frankdelao4067 Firs off these are not "light bulbs", these are LED based. They shouldn't fail for the life of the car unless there is a defect. They are also NOT on the CAN bus. They are driven from a body controller. I looked in the parts catalog, and they are part number 1007151-00-E listed for $17.
@frankdelao4067
@frankdelao4067 Год назад
@@Ingineerix the price I got was mentioned by the tech. Since there is a charge for Tesla to change them might explain the price difference. We had a G35, Infiniti wanted $20 to replace the right front turn bulb, only held in place by a single Phillips screw. For years I have heard how LEDs are supposed to last years. Our house has all LEDs. None has lasted 5 years. Our G35 had multiple LEDs in the high center stop light, several in the unit went bad.
@Ingineerix
@Ingineerix Год назад
@@frankdelao4067 Most low-power LEDs have lifetimes in the 100,000 hour range. High power is in the 10,000 hours range. Both types depend on proper engineering of the power supply and thermal system to get those numbers. Most LEDs don't fail, but it's usually the power supply.
@unoxunox4086
@unoxunox4086 2 года назад
Thank you for your videos! Maybe you'll make an CAN extended video with some filter, transceiver and controller stuff. I would like to now more whats up on HW on the PCB. 😍
@edwincloudusa
@edwincloudusa 2 года назад
Does tesla use canopen, j1939 or proprietary application protocol?
@hondaredrdr
@hondaredrdr 2 года назад
Great video, thank you!
@evanlacava9213
@evanlacava9213 2 года назад
Yessss
@koeniglicher
@koeniglicher 2 года назад
I would like to know more about the CAN database format to decode the raw CAN messages of Tesla vehicles. They are clearly a result of reverse engineering for Tesla. Is there a repository for these files anywhere as a public collection?
@backacheache
@backacheache 2 года назад
There are a lot of open source projects around CAN and cars so I am sure there are resources out there to find, for example I use a CAN adaptor to diagnose issues with my car
@koeniglicher
@koeniglicher 2 года назад
​@@backacheache My question is not on CAN and cars in general. It is specifically about resources to decode the CAN frames (physical addresses, CAN identifiers, data bytes) in Tesla vehicles. This decoding is manufacturer specific and gives meaning to these bits and bytes. They are either leaked from manufacturer (i.e. Tesla) sources or the result of intensive reverse engineering work and can be treated like industry secrets and "gem stones", once they are complete or near complete. It is relatively easy to reverse engineer a few IDs and data bytes here and there for some car, but the decode that Ingeneerix showed in this video for this steering wheel control module on his bench looks basically perfect with very high quality.
@Ingineerix
@Ingineerix 2 года назад
There are some public efforts, but my work is from many total years of reverse engineering work.
@sooocheesy
@sooocheesy 2 года назад
Is the CAN bus separated/sectioned into critical and non-critical areas, or is it just one big "omnibus"? It seems like from a stability/bandwidth perspective the critical driving tasks should exist on their own bus, and other non-critical could be on another one.
@koeniglicher
@koeniglicher 2 года назад
There are multiple separate CAN busses on a Tesla, of course, not just a single big omnibus. Traditionally, in other brands there are at least: powertrain CAN, chassis CAN, body CAN, infotainment CAN, diagnostics CAN. So that somehow separates critical ones from less critical ones. Teslas add Ethernet / Broad R-Reach connections and still has likely even more CAN busses when counted across the whole vehicle.
@Ingineerix
@Ingineerix 2 года назад
@koeniglicher is correct. Even early Model S in 2012 had 4 CAN buses, now some models have over 12. CAN is also pretty fault tolerant by design.
@sudeeptaghosh
@sudeeptaghosh 2 года назад
That was a comprehensive class on digital signal processing end to end
@notradamus20
@notradamus20 Год назад
What are the pins can high, low and power supply?
@notradamus20
@notradamus20 Год назад
How do you do intomaker canbus dongle settings in savvy?
@namnguyenthanh3089
@namnguyenthanh3089 2 года назад
Hello, I have similiar setup like you had. But when I use Savvycan, the windows 10 doesn't regconize it as the COM port but USB serial bus devices. I wont be able to add the connection in Savvycan. In your application, how do you "add new device connection"? Thank you and appreciate your help
@Ingineerix
@Ingineerix 2 года назад
Sorry, I do not use windows. In Linux it just works with SocketCAN, nothing else needed. My only suggestion is to look for SocketCAN drivers for windows.
@namnguyenthanh3089
@namnguyenthanh3089 2 года назад
@@Ingineerix brilliant. Let me explore. Thank you for your reply
@pasanperera8235
@pasanperera8235 2 года назад
Great video
@dorhocyn3
@dorhocyn3 2 года назад
Great stuff
@parkershaw8529
@parkershaw8529 2 года назад
If some device went rogue and jammed the CAN bus, does that prevent everybody else from talking completely?
@Ingineerix
@Ingineerix 2 года назад
No, Generally not possible with CAN hardware. Lowest ID wins. (built in priority)
@alvintechnology49
@alvintechnology49 2 года назад
Watching friend full support🙂😊❤🙏🙏
@zodiacfml
@zodiacfml 2 года назад
keep it coming!😍 i wonder if Toyota's drive by wire steering is robust enough. i guess possible to makeit safe by automatically slowing down the vehicle when it detects a failure in the steering. but then mechanical steering always works.
@floorpizza8074
@floorpizza8074 2 года назад
It has been used in aviation since the '70's. I can't imagine that Toyota would implement a system with such obvious safety possibilities (read: law suits) without making sure that it's plenty robust.
@Ingineerix
@Ingineerix 2 года назад
Tesla doesn't use drive-by-wire steering (yet). The redundancy is mainly for autopilot.
@m1geo
@m1geo 2 года назад
I'd love to see this tool on the main can bus
@otterburn
@otterburn 2 года назад
Well my steering column sensor / click spring like the one in your video has now arrived. Can you tell me where I could look to see which pins are for the power and which for the CAN. Did you use a specific plug or just jumper type wires . Thanks for inspiring me to do this.
@mechanical905
@mechanical905 2 года назад
This looks like an official Tesla DBC rather than reverse engineered. How did you get it?
@larrycreech8956
@larrycreech8956 8 месяцев назад
Anyone know where can I find the pinout and connector information?
@dabradley72
@dabradley72 Год назад
Great video and very informative - I have a Tesla M3 SR I want to add a Tesla OEM subwoofer and amp. In the forums people are saying you can’t just add one as the amp uses can bus and the Tesla MCU won’t talk to it as it doesn’t know it’s there. I understand that but why would an amp need to be on the can bus? Surely it would be possible to program a arduino to send the signals it’s wants - or am I missing something??
@Ingineerix
@Ingineerix Год назад
It's not CAN, it uses a special digital Audio bus called A2B. Without config set in the Gateway that only Tesla (or Tesla hackers like me) can do, the ICE (MCU) will not output the correct digital audio. www.analog.com/en/landing-pages/001/a2b.html There are also different speakers and major wiring harnesses, it's not just the sub/amp.
@dabradley72
@dabradley72 Год назад
@@Ingineerix ok thanks - I’ll have a look into that 👍🏻
@blackswansystem
@blackswansystem 2 года назад
Awesome 👏
@yoraerlangga7632
@yoraerlangga7632 2 года назад
Nice video for information technology. Can you explain the pin numbers of the 12V, GND, CAN H, and CAN L connectors on the SCCM?
@otterburn
@otterburn 2 года назад
I’d be interested to know this too. I have one of there units and I’d like to experiment. I believe CAN give out 2.5 and 5 v but I’m I bit reluctant to start prodding the pins wigg to h an avo 🤣🤣🤣
@waqasazmat81
@waqasazmat81 9 месяцев назад
Hey question for you, where can i get the connector that is connector with the CAN interface? Thanks for the video!
@Ingineerix
@Ingineerix 9 месяцев назад
There is no standard connector. You have to tell me what you are trying to connect from/to. If it's a Tesla, what model/Year?
@waqasazmat81
@waqasazmat81 9 месяцев назад
@@Ingineerix it is a tesla just learing gathering tools so help me get better at diagnoses. The connector you are using with the interface that is what I am referring to
@Ingineerix
@Ingineerix 9 месяцев назад
@@waqasazmat81 That's just a standard DB-9, So this will connect to the CAN dongle: amzn.to/3T2Iz4c
@waqasazmat81
@waqasazmat81 9 месяцев назад
sorry to bug you, I can use that connector to other devices on tesla and read the data on the open source @@Ingineerix
@dennisschlieckau8723
@dennisschlieckau8723 2 года назад
Is there any way you could do a video on the camera system, how they are controlled. I’ve been getting lots of cameras blinded or blocked messages since downloading FSDbeta V10.5. Also getting it on the cabin camera during night driving.
@matthewspry4217
@matthewspry4217 2 года назад
Formerly known as a CAN SNIFFER
@ericjohnson2193
@ericjohnson2193 2 года назад
You alluded to this, but is it common to have multiple can buses for different purposes? If so is there some device that listens to all of them for diagnostics?
@dzidmail
@dzidmail 2 года назад
Yeah, besides expensive multi-CAN dongles, there are boards that use 3xCAN of popular STM32 chips. It is common to split powertrain, chasis, ADAS networks, etc..
@koeniglicher
@koeniglicher 2 года назад
Yes it is common to have multiple CAN busses for different purposes. On Teslas, there is a proprietary diagnostic connector in the console area that exposes a number of CAN busses and some Ethernet networks. For diagnostics there can either be a CAN gateway device that then transmits diagnostic requests to the appropriate busses. Or in case multiple CAN busses do not have a gateway and are all exposed to a diagnostic connector, then the external diagnostics hardware (vehicle communication interface) typically contains a multiplexer. This multiplexer then switches to the right bus first, and does its diagnostics jobs. For this to work, the diagnosis application needs to know beforehand which ECU (electronic control unit) is on which bus. So, instead of listening to all of them for diagnostics in parallel, the multiplexer first talks to the first CAN bus, then the second, then third in an all ECU scan. In diagnostics, a certain focus is required, otherwise you will be just flooded with messages and data from all sorts of ECUs and sub-systems.
@JazzWeisman
@JazzWeisman 2 года назад
Very cool! How many separate can busses are there in a Tesla and how do they separate them (like what goes on which)?
@Ingineerix
@Ingineerix 2 года назад
That depends on the Model. Some only have 5, some have more than 10. Some are dedicated for important applications, such as supercharging.
@rkaid7
@rkaid7 2 года назад
6:00 - CRC *cyclic redundancy check
@Nunya-lz9ey
@Nunya-lz9ey 9 месяцев назад
Please add another video related to the Cybertruck's 48V CAN bus and ethernet stuff
@Ingineerix
@Ingineerix 9 месяцев назад
I would absolutely love to, but it will probably be a long time until I can get my hands on one.
@ClockworksOfGL
@ClockworksOfGL 2 года назад
I’m slightly surprised Tesla uses CRC instead of a digital signature.
@stanbrow
@stanbrow 2 года назад
How does the software on the computer know the meanings of the data frames?
@kevy1yt
@kevy1yt 2 года назад
Nice!
@FearTec
@FearTec 8 месяцев назад
Where is the easiest place to plug in to read CAN messages on a Tesla Model Y 2023
@jendib
@jendib 2 года назад
So the CAN bus is not used to write data to devices? It's only for reading states and alerts?
@Ingineerix
@Ingineerix 2 года назад
For simplicity, I only demonstrated one node, the SCCM, so it's the only thing talking. There are hundreds of IDs active on most of the CAN buses in the car. It would pretty much be overwhelming to show them all, and that's not the point. It's like trying to learn a new language: Would you rather hear only one person talk, or a whole room full of people at once? If you want more, take a look at my "Secret Signals" video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CLOEGFtFIPA.html
@jendib
@jendib 2 года назад
@@Ingineerix I totally understand that, I was just wondering if a device can send commands to the CAN bus instead of simply broadcasting internal states.
@Ingineerix
@Ingineerix 2 года назад
@@jendib All can transmits are broadcasts. Any device on CAN can receive or send (broadcast).
@jendib
@jendib 2 года назад
@@Ingineerix Thanks for the clarification and for making those videos, it's super interesting!
@lavenjohnson2798
@lavenjohnson2798 2 года назад
can you share your DBC about tesla steer
@wagnerbrochini3892
@wagnerbrochini3892 2 года назад
Excellent video! Got a sub, please do a video on the onboard charger and the can handshake it uses to talk to a charging station! Thanks!!
@Ingineerix
@Ingineerix 2 года назад
On board charger is here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lXokJEzXwaI.html Overall charging is covered here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0lxxOsLcNQQ.html
@wagnerbrochini3892
@wagnerbrochini3892 2 года назад
@@Ingineerix Thanks for taking the time to respond! I meant the can sniffing of what is going from the onboard charger to the charging station, similar to what you read here from the steering module on the CAN Bus.
@Ingineerix
@Ingineerix 2 года назад
@@wagnerbrochini3892 Sorry, I am not going to make that information public, as it would likely result in a bunch of people trying to connect unsafe stuff to the charging network. Also, Tesla would likely change it if this happened, thus making all the time I spent learning it a waste.
@wagnerbrochini3892
@wagnerbrochini3892 2 года назад
Well, it was all for the sake of knowledge, but I understand your position. Either way, I don't think it would make a difference if they changed it, stations would still have to talk with "legacy" chargers, so no point in changing; it would be of huge interest to DIYers like myself to have an insight on what's happening during a charge, best regards!
@Ingineerix
@Ingineerix 2 года назад
@@wagnerbrochini3892 The basic flow is the Supercharger is a dumb device. Basically The BMS in the car sends voltage and current commands to the supercharger, and it does it's best to obey them. It's very similar to CHAdeMO. Billing/authorization is handled in the car.
@teslaw-model3
@teslaw-model3 2 года назад
how do you decode new messages on the bus including their meaning if you have never seen them before?
@koeniglicher
@koeniglicher 2 года назад
By changing only a single input at a time. Combined with some trial and error, guessing and luck. If someone can do Sudoku, then reverse engineering is basically the same. I guess, there is also a Tesla hacker community that exchange their findings in reverse engineering.
@disapr_1
@disapr_1 2 года назад
How about a video on CAN signal injection and manipulation.
@KarlQuinsland
@KarlQuinsland 2 года назад
Love the videos! If you can find an on-screen magnifier that plays nice with your screen recording software, consider having some sort of virtual magnification follow your mouse cursor around for those of us watching on mobile. Otherwise text on a screen recording looks like letters made for ants
@pergoransson3397
@pergoransson3397 2 года назад
What DBC do you use?
@Ingineerix
@Ingineerix 2 года назад
I have created one by many hours of painstaking reverse-engineering.
@vinny9152
@vinny9152 2 года назад
How often are these CAN IDs changed by Tesla, if at all?
@pashko90
@pashko90 2 года назад
not often. Even on the some car makers, they keep can ids for decade...
@Ingineerix
@Ingineerix 2 года назад
The Tesla CAN frames are constantly changing, sometimes several times in one month. Some stay the same for a long time, but others get updated often.
@Kingkoopa00
@Kingkoopa00 2 года назад
Regarding the Model 3 steering wheel control module, is it possible to retrofit the new Model 3/Y heated steering wheel into the older Model 3s? Not counting software requirements from Tesla, but it is physically able?
@Ingineerix
@Ingineerix 2 года назад
Yes, but without the software changes, there is no way to use it.
@Kingkoopa00
@Kingkoopa00 2 года назад
@@Ingineerix What do you think the chances are that Tesla would allow a retrofit and enable the software? They are supposedly going to be offering it for the PWS speaker system for cars that were built without the speaker, but still have the wiring harness (I need to see if mine has the harness, March '18).
@Ingineerix
@Ingineerix 2 года назад
@@Kingkoopa00 Based on prior history, I'd say very low. Tesla service is pretty horrible IMO, and most often the employees seem to treat customers as something offending they found stuck to the bottom of their shoe. Historically Tesla concentrates on the newest models and doesn't seem to give much priority for their customers of even slightly older cars.
@Kingkoopa00
@Kingkoopa00 2 года назад
@@Ingineerix Huh. My experience has been very different. At least in my local service department. They've ordered me parts several times, like the redesigned rear and mid diffuser, with no problem. Or things they added to later models, that I wanted to add to mine. I've heard it's very hit and miss though for service quality, and all based on the specific service center.
@Ingineerix
@Ingineerix 2 года назад
@@Kingkoopa00 Yeah, YMMV. I used to know a nice parts guy at one of the SCs close to me, but he didn't last long. Based on what I've seen first hand and been told, I'd say at least 75% of the SCs are hostile to customers in general.
@no_more_free_nicks
@no_more_free_nicks 2 года назад
Interesting, seems like a robust protocol.
@joshmills7368
@joshmills7368 Год назад
What does it mean when it says the CAN NODE is irrational or MIA?
@Ingineerix
@Ingineerix Год назад
Well "MIA" stands for "Missing in Action", just means it's not reporting in (no frames received when they are supposed to be). Irrational means that it's probably sending data that is out-of-bounds or doesn't make sense. Some causes of irrationality are frame counters out of sequence, checksums that don't prove out, encoded values that can't be true, such as a percentage value over 100, etc.
@joshmills7368
@joshmills7368 Год назад
@@Ingineerix my 2021 Tesla model 3 autopilot ECU is in fallback mode and service mode is saying DAS CAN NODE irrational / MIA… I’m outside my warranty so I’m trying to fix it myself
@Ingineerix
@Ingineerix Год назад
@@joshmills7368 First off, a 2021 car should still be in warranty. Secondly this is probably something you can't fix yourself. DAS is a microcontroller inside the Autopilot ECU. If you've powered down the car completely for 5 minutes and restarted, and it's still there, then it's probably something you can't fix internally. When I say power down, I mean both HV and LV, not just pressing the shutdown button on the screen.
@joshmills7368
@joshmills7368 Год назад
@@Ingineerix I commute 162 miles per day to and from work.. I’m at $61,000 miles.. I did the power Down for 12 hours and still nothing.. I didn’t see anything obvious on the AP board.. but I didn’t use my multimeter.. it’s acting like an IC microcontroller fried itself.. you’re saying I can’t replace the IC and it start working again?
@Ingineerix
@Ingineerix Год назад
@@joshmills7368 No, because you have no way to flash the correct firmware on it. The best you could do is replace the whole APE board with one from Ebay, which should work, but you'd lose the ability to update the software as Tesla won't have the correct certificate matches. Sadly you'll probably have to pay Tesla for a new ICE. (They won't replace just the APE board) You can't replace the ICE yourself either, the GW config won't match your car.
@bencrilly209
@bencrilly209 2 года назад
I would like to a see a tear down of the model X air suspension raven system. Or an explanation of what the module does thank you
@Ingineerix
@Ingineerix 2 года назад
Send me one!
@bencrilly209
@bencrilly209 2 года назад
@@Ingineerix you can tear mine down I already took out the rear seats it’s my service van 2020 long range plus
@bencrilly209
@bencrilly209 2 года назад
@@Ingineerix I have both seat modules connected and no error message on the screen removed from seats
@Ingineerix
@Ingineerix 2 года назад
@@bencrilly209 I can't promise a teardown won't damage something. While I try to not destroy stuff if at all possible, there is still significant risk.
@bencrilly209
@bencrilly209 2 года назад
@@Ingineerix where else in the world can you get a work truck that’s fully loaded with my tools and I’m avg 310 watts a mile….I would like to see anyone get to beat that
@Ryukachoo
@Ryukachoo 2 года назад
Dumb question, when making a CAN stub for a USB to can converter, it's literally just pins 2 and 7 for can lo and hi, right? No extra power or ground wires needed? Edit; dang, the part of you showing how you're terminating the can wires isn't shown
@Ingineerix
@Ingineerix 2 года назад
Yes, sorry. Editing mistake. You are talking about the DB-9 pins, yes it's 2 and 7. If you scroll down on the Amazon link, they provide the pinout. You don't need a ground reference is there is galvanic isolation, it's optional.
@Ryukachoo
@Ryukachoo 2 года назад
@@Ingineerix ah, thanks, but it sounds like you also have a 120k ohm resistor somewhere on there too?
@Ingineerix
@Ingineerix 2 года назад
@@Ryukachoo It's not 120k, it's 120 ohms. And you can clearly see it in the beginning of the video, it's connected using the 2 blue wire nuts. The other termination is inside the CAN to USB adapter, which is enabled by a jumper.
@ArnaudMEURET
@ArnaudMEURET 2 года назад
Is there a single bus for the whole car?
@koeniglicher
@koeniglicher 2 года назад
No.
@Ingineerix
@Ingineerix 2 года назад
Even early Model S in 2012 had 4 CAN buses, now some models have over 12. CAN is also pretty fault tolerant by design. Separation helps ensure more reliability and safety.
@ToniMorton
@ToniMorton 2 года назад
is it technically possible to just take a wheel module from a tesla and use a microcontroller to convert the CAN data to a usb input device? make cheapish driving wheels for gaming out of tesla steering wheels from salvage cars lol
@ToniMorton
@ToniMorton 2 года назад
only issue with this i spose would be the airbag lmao
@ToniMorton
@ToniMorton 2 года назад
i wonder if also the CRC data is designed as a means to avoid people from going and tampering with the can bus data for steering angle without tampering with the crc data (wonder what the car would do if that check failed too)
@jemalas
@jemalas 2 года назад
Just wanted to add that CAN FD (flexible data rate, developed around 2011) can be up to 5Mbit/s, would not be surprised if it is in the Tesla
@Ingineerix
@Ingineerix 2 года назад
No, Tesla does not use FD or FT. All Tesla CAN is 500k standard boring CAN, except supercharger communications, which is 33.3k, single-wire.
@Ender_Wiggin
@Ender_Wiggin 2 года назад
Know do a really in-depth version!
@baconsledge
@baconsledge 2 года назад
I wonder if anyone has done CAN with a dsPic33 and not gone insane. Like 8 huge documents that need to be read and understood concurrently. Mehh.
@CaseySpencer425
@CaseySpencer425 2 года назад
First
@j4k3br4k3
@j4k3br4k3 2 года назад
2nd
@Ingineerix
@Ingineerix 2 года назад
Actually, I was first. =)
@KarlAlfredRoemer
@KarlAlfredRoemer 2 года назад
How do you know that id 0x129 is steeringanglesensor?
@Ingineerix
@Ingineerix 2 года назад
By reverse engineering the whole system, it took many years of work in total.
@kimcy555
@kimcy555 Год назад
I have problem about conection with Savvycan V208 program (can't see serial port) but I using Innomaker program it work fine. Please tell me about program setup or connection setting
@Ingineerix
@Ingineerix Год назад
Sorry, I use Linux and SocketCAN, so it just works, no drivers needed. Can't advise on Windows because I don't use it.
Далее
Tesla Autopilot - How does it stop?
11:39
Просмотров 16 тыс.
Семья с двойным дном. Рассказ
2:45:06
Tesla Low Voltage  - How does it work?  DEEPish DIVE!
41:46
CAN Bus Properties and Troubleshooting
18:09
Просмотров 1,3 млн
How 3 Phase Power works: why 3 phases?
14:41
Просмотров 1 млн
Tesla Teardowns - Why is there a CLOCKSPRING?!?
8:59
CrowdStrike IT Outage Explained by a Windows Developer
13:40
Hacking a weird TV censoring device
20:59
Просмотров 3,1 млн
5 Tips For CAN Bus Diagnostics | Mechanic Mindset
16:55
Tesla CAN Bus Raspberry Pi
10:14
Просмотров 31 тыс.
Tesla Charging - How Does it Work?
22:05
Просмотров 41 тыс.