1 00:00:04,040 --> 00:00:13,940 but don't do it again good so I am nothing face and this is talk about automotive networks 2 00:00:16,760 --> 00:00:25,160 overview no it's not little overview of what the talks gonna be about gonna give a little 3 00:00:25,160 --> 00:00:29,360 brief background about myself give you some perspective about I get some idea of my 4 00:00:29,360 --> 00:00:34,580 perspective and you know just give you an idea of where my you know the ideas that I'm 5 00:00:34,580 --> 00:00:41,060 that I'm coming up with me or may not be based on my strengths and weaknesses give a little 6 00:00:41,060 --> 00:00:45,640 idea of what how is going to be relevant to you depending on your level of interest in 7 00:00:45,640 --> 00:00:49,560 hacking and automobile there's some things that may be interesting to you even if you 8 00:00:49,560 --> 00:00:53,860 aren't interested in hacking a real just to learn about the operation and understand what's 9 00:00:53,860 --> 00:00:58,360 going on give a little bit background on the electronics and automobiles 10 00:00:58,360 --> 00:00:58,760 you 11 00:00:58,760 --> 00:01:02,560 And then a large part will be about OBD2. 12 00:01:02,660 --> 00:01:04,240 It's onboard diagnostics 2. 13 00:01:04,720 --> 00:01:07,660 That's a standard used commonly today. 14 00:01:07,960 --> 00:01:12,480 Talk a little bit about common places that that's used, the physical and data link layer, 15 00:01:13,280 --> 00:01:15,980 trying to adhere somewhat to the OSI model of networking. 16 00:01:16,880 --> 00:01:21,540 Talk about some of the diagnostic modes that that specifies, some products that implement it. 17 00:01:21,960 --> 00:01:25,920 And then I'll conclude with an introduction to some software I've been working on 18 00:01:25,920 --> 00:01:30,760 to implement these protocols and serve as a platform for others to develop other applications. 19 00:01:32,620 --> 00:01:36,140 So about the speaker, I'm educated in electrical and computer engineering. 20 00:01:36,620 --> 00:01:39,060 I have professional experience in hardware and software design, 21 00:01:40,100 --> 00:01:44,640 but I'm also a Saturday afternoon mechanic, so I'm not afraid of grease or a wrench, 22 00:01:44,720 --> 00:01:46,180 but I'm also not a mechanical engineer. 23 00:01:46,380 --> 00:01:53,240 So the automotive engineering aspects are where I'm so much on my strengths, 24 00:01:53,340 --> 00:01:55,800 but my hope is to be able. 25 00:01:55,920 --> 00:02:00,340 I'm going to put tools in the hands of those who are more able to make those types of 26 00:02:00,840 --> 00:02:03,960 automotive engineering decisions and tinker with their vehicles. 27 00:02:04,320 --> 00:02:06,480 And I'm also concerned about privacy, and as you'll see, 28 00:02:06,520 --> 00:02:11,300 there's a number of aspects of the buses and the networks on the vehicle 29 00:02:11,300 --> 00:02:13,860 that could potentially have privacy implications. 30 00:02:16,760 --> 00:02:19,740 So why should you out there in the audience care? 31 00:02:20,380 --> 00:02:24,260 Well, the automotive maintenance monopoly is probably the big reason. 32 00:02:25,920 --> 00:02:28,860 For automobiles, you can get service manuals that provide mechanical drawings 33 00:02:28,860 --> 00:02:32,840 with a great deal of accuracy for all the mechanical components in a vehicle, 34 00:02:32,980 --> 00:02:36,860 every bolt, every nut, all the torque specifications, all that. 35 00:02:37,080 --> 00:02:43,760 But as far as electronics go, generally the best you can get is a wiring diagram 36 00:02:43,760 --> 00:02:47,500 that tells you where the wires in the vehicle go to hook up one box to another, 37 00:02:47,600 --> 00:02:48,760 but each box is a black box. 38 00:02:48,880 --> 00:02:50,280 There's no schematics of the boards. 39 00:02:50,340 --> 00:02:51,840 There's no source code to the firmware. 40 00:02:53,940 --> 00:02:55,740 There's limited protocol specifications. 41 00:02:55,920 --> 00:02:59,440 So there's no way to really do the same thing you can do with an engine 42 00:02:59,440 --> 00:03:01,600 with the computer that controls the engine. 43 00:03:01,920 --> 00:03:06,220 And particularly from my background, I think that that's very limiting 44 00:03:06,220 --> 00:03:08,260 because I'd like to be able to tinker around with that. 45 00:03:08,360 --> 00:03:13,460 So a lot of this is more reverse engineering to sort of try to gain that knowledge from a vehicle. 46 00:03:14,540 --> 00:03:15,860 There's also privacy implications. 47 00:03:16,000 --> 00:03:18,020 Even if you're not interested in tinkering with a vehicle, 48 00:03:18,700 --> 00:03:20,920 there are things that a vehicle could potentially be recording 49 00:03:20,920 --> 00:03:22,240 with a lot of electronics on there. 50 00:03:22,300 --> 00:03:25,900 It could be recording, storing, transmitting data about your drive, 51 00:03:25,920 --> 00:03:30,100 about your vehicle, and all sorts of information about the driver of the vehicle. 52 00:03:31,640 --> 00:03:34,140 And so, you know, considering all these things, 53 00:03:34,220 --> 00:03:38,120 modern vehicles tend to be more under the control of a manufacturer than the owner. 54 00:03:38,440 --> 00:03:42,940 And there's some barriers put in place to prevent you from being able to control that, 55 00:03:43,040 --> 00:03:46,000 which a lot of people may object to. 56 00:03:46,060 --> 00:03:46,680 I personally do. 57 00:03:49,640 --> 00:03:53,500 So automobile electronics, where did that come from? 58 00:03:53,760 --> 00:03:55,460 Well, initially it started... 59 00:03:55,920 --> 00:03:58,980 So originally under the hood, just controlling fuel injectors, 60 00:03:59,020 --> 00:04:02,600 analog brakes, traction control, airbags, you know, 61 00:04:02,620 --> 00:04:07,880 performing some of the more advanced functions that were a long time ago done 62 00:04:07,880 --> 00:04:10,880 by mechanical or electromechanical systems. 63 00:04:11,060 --> 00:04:18,060 But as federal requirements got more strict and also as the systems got more complex, 64 00:04:18,180 --> 00:04:23,020 the need was to make it more of a software-type system with a software control system. 65 00:04:23,560 --> 00:04:25,160 There's also user-visible. 66 00:04:25,920 --> 00:04:29,700 Systems as, you know, electronics becoming cheaper and more used. 67 00:04:29,760 --> 00:04:32,540 They're used for climate control, entertainment, navigation, communications. 68 00:04:34,850 --> 00:04:39,420 And so onboard diagnostic standards, OBD or OBD-1, 69 00:04:40,220 --> 00:04:43,420 was an early standard by the federal government in the United States 70 00:04:43,420 --> 00:04:47,440 to standardize on some of these electronics. 71 00:04:48,510 --> 00:04:49,480 But they didn't... 72 00:04:49,480 --> 00:04:50,960 The standardization only went so far, 73 00:04:51,040 --> 00:04:54,820 and it didn't actually require the manufacturers to standardize a particular implementation. 74 00:04:54,900 --> 00:04:55,560 It just said, 75 00:04:55,560 --> 00:04:56,900 certain functionality was required. 76 00:04:57,120 --> 00:05:01,600 So that led to a number of disparate implementations in the field. 77 00:05:01,700 --> 00:05:07,160 So every manufacturer had a different test box that you need to get a specific one 78 00:05:07,160 --> 00:05:09,980 for a specific vehicle to perform the same functions. 79 00:05:10,880 --> 00:05:16,420 So onboard diagnostics, too, is a standardized implementation that said, 80 00:05:16,460 --> 00:05:19,760 not only do you have to do particular features, but you have to do them in a particular way 81 00:05:20,180 --> 00:05:25,320 so that you can have interoperable products where you can get a test box, 82 00:05:25,560 --> 00:05:28,880 outside the vehicle, to plug it into any vehicle and it will communicate with it. 83 00:05:29,000 --> 00:05:33,240 And you can also get replacement parts for certain pieces in a vehicle. 84 00:05:34,180 --> 00:05:37,000 Actually, I'm going to save questions until the end, if that's all right. 85 00:05:37,560 --> 00:05:38,360 Just one question. 86 00:05:38,480 --> 00:05:39,620 What platform are you using regularly? 87 00:05:40,120 --> 00:05:40,660 Oh, sorry. 88 00:05:41,120 --> 00:05:47,920 So OBD-1 was early 90s is when it was standardized, or when it was required. 89 00:05:48,460 --> 00:05:53,460 OBD-2 was mandated in 1996, and that's current in all vehicles nowadays. 90 00:05:53,540 --> 00:05:55,400 There's sort of a little bit of slop. 91 00:05:55,440 --> 00:05:55,540 There's sort of a little bit of slop. 92 00:05:55,540 --> 00:05:58,060 There's sort of a little bit of slop in the timeframe in which they're implemented. 93 00:05:58,860 --> 00:06:02,920 The federal government said vehicles starting in 96 have to have them, 94 00:06:03,000 --> 00:06:07,200 but they don't actually have to be fully functional until 2000 or 1999. 95 00:06:07,800 --> 00:06:12,600 So there's some variance in what actually has been implemented. 96 00:06:13,280 --> 00:06:17,100 And there's some discussion about what's the future for OBD-3, 97 00:06:17,280 --> 00:06:19,120 so I'll get to that a little bit in the future as well. 98 00:06:20,560 --> 00:06:23,760 So the current standard is OBD-2. 99 00:06:23,880 --> 00:06:25,360 It's standardized by SAE. 100 00:06:25,360 --> 00:06:28,960 And the standard covers a physical connector. 101 00:06:29,280 --> 00:06:32,780 All vehicles have to have one single, the same single physical connector. 102 00:06:33,500 --> 00:06:35,120 It covers a data link layer. 103 00:06:35,460 --> 00:06:40,280 There's three options where any vehicle has to have one of the three options. 104 00:06:40,740 --> 00:06:43,980 And there's a standard network protocol that's run on top of all the data link layers. 105 00:06:44,740 --> 00:06:49,540 It also standardized diagnostics, by which there's certain procedures 106 00:06:49,540 --> 00:06:53,920 and mechanisms required for diagnosing, troubleshooting the vehicle. 107 00:06:55,440 --> 00:06:59,920 Only the diagnostics that relate to emissions control systems by U.S. federal law 108 00:06:59,920 --> 00:07:02,380 under EPA legislation are really required. 109 00:07:03,240 --> 00:07:09,360 The scope of the standard covers the ability to use this bus for other purposes. 110 00:07:10,260 --> 00:07:16,160 So there's room in the standard to support standard common components 111 00:07:16,160 --> 00:07:19,740 and manufacturer-specific components, but those aren't required by the federal law. 112 00:07:20,500 --> 00:07:23,900 There's also many packet formats and data types for diagnostic control. 113 00:07:23,900 --> 00:07:26,260 Again, there's a variety of them. 114 00:07:26,980 --> 00:07:28,780 Only a few of them are specifically required, 115 00:07:29,140 --> 00:07:32,860 but for manufacturers that want to duplicate efforts 116 00:07:32,860 --> 00:07:36,140 and have a separate diagnostic bus for all the things that are not required, 117 00:07:36,280 --> 00:07:40,360 they can just use the same bus for all of their specific proprietary parts. 118 00:07:42,600 --> 00:07:46,700 OBD-2 also specifies a mechanism to read and write the ECU memory. 119 00:07:48,260 --> 00:07:52,580 There's two definitions for that acronym. 120 00:07:52,580 --> 00:07:55,260 Originally it stand for Engine Control Unit, 121 00:07:55,460 --> 00:07:58,340 but now it's often used to mean Electronic Control Unit, 122 00:07:58,400 --> 00:07:59,940 which can control things other than the engine, 123 00:08:00,080 --> 00:08:04,240 such as anti-lock brakes or airbags or climate control. 124 00:08:04,460 --> 00:08:08,660 Any of those black boxes could be an ECU, an electronic control unit. 125 00:08:08,860 --> 00:08:13,680 So since they have microcontrollers or more functional processors and memory, 126 00:08:13,740 --> 00:08:19,320 you can read and write the memory with OBD network messages. 127 00:08:19,680 --> 00:08:21,340 And there's also a security feature. 128 00:08:22,580 --> 00:08:31,040 It allows particularly either proprietary or safety-related features 129 00:08:31,420 --> 00:08:37,660 to be protected by a security feature that requires certain knowledge of the vehicle 130 00:08:37,660 --> 00:08:43,200 before you, say, reprogram your anti-lock brakes or your anti-theft system on the vehicle. 131 00:08:43,660 --> 00:08:47,200 And that's not required, but it is used by a number of manufacturers 132 00:08:47,200 --> 00:08:50,960 for the theft control systems or anti-theft systems. 133 00:08:53,060 --> 00:08:54,380 So common usage. 134 00:08:54,560 --> 00:08:58,820 The scan tool is one of the very common uses of the diagnostic bus 135 00:08:58,820 --> 00:09:03,020 for the purposes, as its namesake, diagnosing problems with the vehicle. 136 00:09:04,160 --> 00:09:08,120 An ECU detects a fault condition, some problem with the vehicle as you're operating it. 137 00:09:08,500 --> 00:09:11,780 Say, for example, an oxygen sensor detects a mixture too rich. 138 00:09:12,040 --> 00:09:16,420 So that ECU, it records a diagnostic trouble code. 139 00:09:16,620 --> 00:09:20,660 It's basically just a number that explains in more detail 140 00:09:20,660 --> 00:09:22,340 about what exactly is an oxygen sensor. 141 00:09:22,580 --> 00:09:25,040 You know, Bank 2 had a problem. 142 00:09:26,260 --> 00:09:28,800 And when the diagnostic trouble code is stored, 143 00:09:28,980 --> 00:09:31,440 it causes the check engine light on the dashboard to illuminate. 144 00:09:32,760 --> 00:09:34,980 Some DTCs can be minor and not cause that to happen, 145 00:09:35,060 --> 00:09:38,040 but typically they cause the check engine light to illuminate 146 00:09:38,040 --> 00:09:40,300 so that the driver of the vehicle knows there's a problem. 147 00:09:40,580 --> 00:09:41,760 They take it to the mechanic. 148 00:09:41,900 --> 00:09:44,040 The mechanic plugs in this scan tool device. 149 00:09:44,680 --> 00:09:45,920 It retrieves the DTC. 150 00:09:46,220 --> 00:09:50,580 This is when people hear a mechanic saying they read the codes back or they scanned the codes. 151 00:09:51,000 --> 00:09:52,560 This is the process that they're doing. 152 00:09:52,580 --> 00:09:54,460 This is what they're doing to determine what that number is 153 00:09:54,460 --> 00:09:57,220 and then use that to, you know, troubleshoot the problem. 154 00:09:57,360 --> 00:09:58,540 So then they fix the problem. 155 00:09:58,720 --> 00:10:01,040 And then with that scan tool, they can clear the DTC, 156 00:10:01,260 --> 00:10:03,820 cause the check engine light to go off, and your car is fixed. 157 00:10:08,260 --> 00:10:14,580 Another common usage of OBD2 that's only becoming put in use in the last couple years 158 00:10:15,020 --> 00:10:16,480 is a crash data recorder. 159 00:10:17,880 --> 00:10:21,360 Now, this is a function where the airbag control module senses a deployment 160 00:10:21,360 --> 00:10:22,520 or non-deployment event. 161 00:10:23,780 --> 00:10:27,920 The deployment events relate to when an airbag deploys. 162 00:10:28,580 --> 00:10:33,180 The sensors detect the acceleration of the vehicle and impact sensors and whatnot 163 00:10:33,180 --> 00:10:37,960 to determine that there's been a crash and it deploys the airbag to serve its purpose. 164 00:10:38,480 --> 00:10:45,700 A non-deployment event is an event that causes perhaps some but not all of the sensors to trigger, 165 00:10:45,900 --> 00:10:49,980 so it doesn't actually deploy the airbag, but it's considered to be fairly significant. 166 00:10:49,980 --> 00:10:52,540 So that information can also be stored in the airbag controller. 167 00:10:54,440 --> 00:10:57,100 The vehicle sensor data is stored in the airbag control module. 168 00:10:57,160 --> 00:10:59,800 That's where the actual information is stored. 169 00:11:00,100 --> 00:11:03,760 And it can store information from other sensors that are not part of that module, 170 00:11:03,920 --> 00:11:07,920 including vehicle speed, engine speed, throttle position, brake state, 171 00:11:08,060 --> 00:11:10,140 the driver's seatbelt state, whether it's engaged or not. 172 00:11:11,720 --> 00:11:17,040 And then this information can be read back from law enforcement or mechanic or whatnot, 173 00:11:17,180 --> 00:11:18,820 you know, after the crash for analysis. 174 00:11:19,980 --> 00:11:24,420 It doesn't help in troubleshooting in a car because it's really just information about the crash, 175 00:11:24,600 --> 00:11:30,360 so it's more for forensic analysis of an accident, possibly in an illegal setting. 176 00:11:31,080 --> 00:11:35,260 So if the vehicle is repaired, the airbag control module is just reset or replaced. 177 00:11:38,860 --> 00:11:41,760 So getting to the OBD-II network. 178 00:11:42,120 --> 00:11:48,260 The physical layer specified by OBD-II, it specifies three diagnostic buses. 179 00:11:48,540 --> 00:11:48,880 There's... 180 00:11:49,980 --> 00:11:51,140 There's an OBD-II of other buses. 181 00:11:51,220 --> 00:11:51,920 I'll get to that in a bit. 182 00:11:52,040 --> 00:11:57,440 But the three main buses are these three here, the PWM, pulse width modulation, 183 00:11:57,980 --> 00:12:03,200 the variable pulse width modulation, and the ISO, asynchronous serial bus. 184 00:12:03,360 --> 00:12:07,940 The ISO bus is actually standardized by the ISO organization in Europe, 185 00:12:08,060 --> 00:12:12,360 and that's commonly used by European cars and Japanese cars. 186 00:12:12,860 --> 00:12:16,340 But the other two are actually detailed, specified in OBD-II. 187 00:12:16,480 --> 00:12:19,800 And any one of the three buses is required on a vehicle. 188 00:12:19,800 --> 00:12:24,060 And it's required to use that bus for all of the federally mandated diagnostics 189 00:12:24,060 --> 00:12:26,360 and commonly manufacturers then extend that functionality 190 00:12:26,360 --> 00:12:29,340 to every other diagnostic capability they have, 191 00:12:29,520 --> 00:12:32,940 because why add a second bus when you don't already have this one? 192 00:12:34,440 --> 00:12:38,780 Some other buses that are common on automobiles are the CAN bus, 193 00:12:38,920 --> 00:12:39,720 the Control Area Network. 194 00:12:40,320 --> 00:12:43,760 That's a lot higher speed than the other buses on about a factor of 10 or more. 195 00:12:44,600 --> 00:12:48,200 And the CAN bus is typically used for real-time communication 196 00:12:48,200 --> 00:12:51,960 between ECUs on a vehicle. 197 00:12:52,360 --> 00:12:56,860 Whereas the diagnostic buses are used for communicating off the vehicle 198 00:12:56,860 --> 00:12:59,600 to a scan tool or some other device plugged into the vehicle, 199 00:12:59,900 --> 00:13:04,060 the CAN bus is often used for communication between the airbag controller 200 00:13:04,060 --> 00:13:08,960 and the engine control unit while you're driving the vehicle in real-time 201 00:13:08,960 --> 00:13:13,760 to update vehicle speed or other sensor readings or to control systems. 202 00:13:15,340 --> 00:13:18,180 And the CAN is more used in higher-end automobiles, 203 00:13:18,200 --> 00:13:22,020 but its use is becoming more and more prevalent. 204 00:13:22,180 --> 00:13:27,960 I think in the future there's going to be a lot more functionality available on the CAN bus. 205 00:13:28,380 --> 00:13:31,760 And other buses that are used in automobiles, 206 00:13:31,960 --> 00:13:35,980 there's manufacturer proprietary, there's the OBD-1 buses. 207 00:13:36,040 --> 00:13:37,820 Like I said, there's no standard implementation, 208 00:13:38,120 --> 00:13:42,420 so there's a variety of buses that are used for the OBD-1 implementations, 209 00:13:42,440 --> 00:13:45,960 and there's also buses before OBD-1 where manufacturers had 210 00:13:46,720 --> 00:13:48,180 substantial electronic controls. 211 00:13:48,200 --> 00:13:49,200 They had emissions control systems in a vehicle, 212 00:13:49,360 --> 00:13:52,740 but did not before there was federal requirements 213 00:13:52,740 --> 00:13:57,760 to have certain emissions control systems diagnosable 214 00:13:57,760 --> 00:14:00,600 from an off-board controller. 215 00:14:00,880 --> 00:14:02,720 So there's a variety of those, 216 00:14:02,740 --> 00:14:05,480 and those are limited use from different manufacturers. 217 00:14:07,340 --> 00:14:12,660 So the data link layer on the OBD-2 and the ISO bus, 218 00:14:14,720 --> 00:14:16,500 they're all half-duplex shared buses, 219 00:14:16,500 --> 00:14:21,000 and they're all carry sense multiple access with non-destructive collisions. 220 00:14:21,620 --> 00:14:25,700 So basically what that means is there's a priority in the header of the packet. 221 00:14:25,780 --> 00:14:28,600 The beginning of the packet, 222 00:14:28,680 --> 00:14:30,360 which specifies the message type and addressing, 223 00:14:30,560 --> 00:14:34,700 is allocated in such a way that the higher priority messages 224 00:14:36,000 --> 00:14:37,620 will win a contention on the bus, 225 00:14:37,700 --> 00:14:39,900 so you don't actually have a destructive collision 226 00:14:39,900 --> 00:14:41,660 that causes both packets to retry. 227 00:14:41,680 --> 00:14:44,000 Only the lower priority packet will retry, 228 00:14:44,080 --> 00:14:46,380 and this basically makes it such that 229 00:14:46,380 --> 00:14:49,960 if you have a bus with a lot of traffic on it, 230 00:14:50,000 --> 00:14:50,740 a lot of contention, 231 00:14:50,840 --> 00:14:53,760 you won't have zero data rate. 232 00:14:53,860 --> 00:14:55,700 You'll still be able to have effective communication, 233 00:14:56,080 --> 00:14:58,120 but certainly the lower priority messages 234 00:14:58,120 --> 00:15:01,000 may get delayed or not sent at all. 235 00:15:03,200 --> 00:15:09,060 The network layer is a standard across all three of the OBD-2 buses. 236 00:15:10,620 --> 00:15:13,520 The SAE specification specifies addressing modes. 237 00:15:14,040 --> 00:15:15,460 There's two different addressing modes, 238 00:15:15,560 --> 00:15:15,940 the functional 239 00:15:16,380 --> 00:15:16,520 and the physical. 240 00:15:16,780 --> 00:15:22,700 The functional mode is used for addressing a component 241 00:15:22,700 --> 00:15:25,680 by its function, as the name says, 242 00:15:25,980 --> 00:15:29,740 and that's for the purposes of allowing vehicle manufacturers 243 00:15:29,740 --> 00:15:34,440 to have freedom in the topology of how they lay out their ECUs, 244 00:15:34,500 --> 00:15:38,460 whether a manufacturer wants to have one or two or five ECUs in a vehicle. 245 00:15:38,880 --> 00:15:41,100 They don't need to be concerned with functional addressing. 246 00:15:41,280 --> 00:15:44,600 You can ask a component, 247 00:15:46,660 --> 00:15:50,360 which component has the sensors for the oxygen sensors, 248 00:15:50,460 --> 00:15:54,960 and you don't need to care that one manufacturer has one ECU that controls that 249 00:15:54,960 --> 00:15:56,320 and another manufacturer has five. 250 00:15:57,640 --> 00:15:59,480 You'll be able to talk to all of them. 251 00:15:59,740 --> 00:16:08,380 So it's more to ease the ability of creating the off-board diagnostics devices. 252 00:16:08,840 --> 00:16:11,500 And the physical addressing is sort of a traditional network typology, 253 00:16:11,660 --> 00:16:13,960 or typical network addressing, 254 00:16:13,960 --> 00:16:19,080 where every individual physical ECU has its own address. 255 00:16:19,520 --> 00:16:21,340 And either can be used for a vehicle, 256 00:16:21,420 --> 00:16:27,240 but certainly the functional can be done on any vehicle very much the same, 257 00:16:27,320 --> 00:16:31,020 and physical needs specific knowledge of a particular vehicle. 258 00:16:32,840 --> 00:16:35,280 And the network layer is also packet formats. 259 00:16:42,520 --> 00:16:44,820 There's also packet formats defined. 260 00:16:46,180 --> 00:16:48,860 And they define things such as the diagnostic modes, 261 00:16:49,040 --> 00:16:52,120 where you can run tests, you can query sensors, 262 00:16:52,340 --> 00:16:53,220 you can control outputs. 263 00:16:55,040 --> 00:16:58,020 That's the main purpose of the diagnostic test, 264 00:16:58,120 --> 00:17:01,420 is from the point of view of a controller off the vehicle, 265 00:17:01,480 --> 00:17:03,320 controlling the systems on the vehicle, 266 00:17:03,360 --> 00:17:05,200 and for diagnostics troubleshooting, 267 00:17:05,280 --> 00:17:05,520 and purposes. 268 00:17:08,880 --> 00:17:11,640 So in these various network formats, 269 00:17:11,840 --> 00:17:15,080 there's some data formats that are used to exchange information. 270 00:17:16,860 --> 00:17:20,260 And this is done in a fairly efficient way 271 00:17:20,260 --> 00:17:26,580 to maximize the utility of the low data rate buses. 272 00:17:27,480 --> 00:17:31,640 There's sort of two aspects to defining a data format. 273 00:17:31,880 --> 00:17:35,080 One is the scaling limit offset table slot, 274 00:17:35,280 --> 00:17:39,660 and that maps the data bits or bytes to a meaningful magnitude. 275 00:17:40,700 --> 00:17:43,460 So basically it's what, you know, 276 00:17:43,480 --> 00:17:45,600 a signed or unsigned number, the bit width, 277 00:17:45,740 --> 00:17:49,000 and it goes even further to define fixed point formats, 278 00:17:49,140 --> 00:17:50,900 where, for example, an 8-bit value can represent 279 00:17:50,900 --> 00:17:54,640 minus 40 to 87.5 in one-half increments. 280 00:17:55,840 --> 00:17:58,100 And the parameter reference number, PRN, 281 00:17:58,160 --> 00:17:59,380 is sort of the other half of that, 282 00:17:59,460 --> 00:18:03,580 where it takes the, it provides the units 283 00:18:03,580 --> 00:18:05,220 and the label or description. 284 00:18:05,500 --> 00:18:07,800 So a PRN would include something like 285 00:18:07,800 --> 00:18:09,500 vehicle speed in miles per hour. 286 00:18:09,640 --> 00:18:12,900 And then it would reference a slot that would dictate 287 00:18:12,900 --> 00:18:14,820 how the magnitude is represented. 288 00:18:15,320 --> 00:18:17,480 So the slot and the PRN are used to, 289 00:18:18,600 --> 00:18:21,420 they basically have to be off-board tables 290 00:18:21,420 --> 00:18:24,180 of when, what packets supply which, 291 00:18:24,920 --> 00:18:27,380 what types of value, what's the slot or PRN 292 00:18:27,380 --> 00:18:28,840 for values that come back from the vehicle 293 00:18:28,840 --> 00:18:31,880 so that the vehicle can send back responses efficiently. 294 00:18:34,760 --> 00:18:36,080 The diagnostic modes, 295 00:18:36,260 --> 00:18:38,560 a variety of diagnostic modes here, 296 00:18:39,300 --> 00:18:40,520 like I've mentioned before, 297 00:18:40,660 --> 00:18:43,040 requesting the sensor or diagnostic data. 298 00:18:43,360 --> 00:18:46,740 You can ask an off-board device, 299 00:18:46,820 --> 00:18:50,260 can query the vehicle for any particular sensor, 300 00:18:50,380 --> 00:18:53,060 what the reading is, or diagnostic data, 301 00:18:53,180 --> 00:18:54,700 which is perhaps sensor input 302 00:18:54,700 --> 00:18:57,520 that's been processed in some way 303 00:18:57,520 --> 00:18:59,300 or the results of an on-board test. 304 00:19:00,960 --> 00:19:02,260 It's a freeze-frame capability 305 00:19:02,260 --> 00:19:06,240 where certain sensors can store their values 306 00:19:06,240 --> 00:19:07,180 at a particular time. 307 00:19:07,440 --> 00:19:10,480 You can set triggers so that you can manually control 308 00:19:10,480 --> 00:19:12,660 when information is stored where 309 00:19:13,220 --> 00:19:15,980 if a certain threshold is reached on a particular sensor, 310 00:19:16,080 --> 00:19:17,980 then store all these other sensors. 311 00:19:19,600 --> 00:19:22,940 Also the freeze-frame data is stored on some DTCs, 312 00:19:22,940 --> 00:19:23,920 the diagnostic trouble codes, 313 00:19:24,000 --> 00:19:25,040 when a particular error occurs. 314 00:19:25,380 --> 00:19:28,080 Sometimes automatically sensors related to, 315 00:19:28,140 --> 00:19:29,800 sensor readings related to that error 316 00:19:29,800 --> 00:19:32,160 will be stored so a mechanic won't need to go 317 00:19:32,260 --> 00:19:32,940 and reproduce the problem. 318 00:19:33,060 --> 00:19:34,880 He'll already have a bit more information 319 00:19:34,880 --> 00:19:36,100 about what went wrong. 320 00:19:37,080 --> 00:19:38,220 And as I mentioned before, 321 00:19:38,300 --> 00:19:39,680 the scan tool example, 322 00:19:39,860 --> 00:19:41,840 you can read and clear the DTCs. 323 00:19:43,720 --> 00:19:45,820 The on-board monitoring and diagnostic tests, 324 00:19:47,420 --> 00:19:49,000 there's continuously monitored 325 00:19:49,000 --> 00:19:50,380 and non-continuously monitored systems, 326 00:19:50,460 --> 00:19:52,400 which are fairly self-explanatory. 327 00:19:52,440 --> 00:19:55,480 One just repeatedly runs as the vehicle is running 328 00:19:55,480 --> 00:19:57,520 and the other one is sort of a one-shot deal. 329 00:19:57,580 --> 00:19:59,900 You ask for the value, ask for it to run, 330 00:19:59,960 --> 00:20:01,300 and it runs and gives you a value back. 331 00:20:02,260 --> 00:20:03,720 And you can initiate the tests 332 00:20:03,720 --> 00:20:05,600 and read the results back from the tests. 333 00:20:05,760 --> 00:20:07,260 And some of these tests are also run 334 00:20:07,260 --> 00:20:08,600 at particular times automatically, 335 00:20:08,820 --> 00:20:11,380 and you can read back the results 336 00:20:11,380 --> 00:20:12,560 of those automatically run tests. 337 00:20:14,080 --> 00:20:16,500 Some other diagnostic modes available 338 00:20:16,500 --> 00:20:18,100 are reading vehicle information, 339 00:20:18,260 --> 00:20:19,240 which includes the VIN, 340 00:20:19,800 --> 00:20:21,820 calibration data, memory checksums, 341 00:20:22,020 --> 00:20:24,260 and even more generally just reading 342 00:20:24,260 --> 00:20:26,560 and writing memory to the ECUs, 343 00:20:26,720 --> 00:20:29,480 which can include data parameters, 344 00:20:29,600 --> 00:20:31,620 it can include code to the runs 345 00:20:31,620 --> 00:20:33,060 on the microcontroller that controls 346 00:20:33,620 --> 00:20:35,480 whatever the ECU's function is. 347 00:20:39,780 --> 00:20:43,080 So what types of existing products are out there? 348 00:20:43,700 --> 00:20:47,720 There's sort of a spectrum of the type of functionality 349 00:20:47,720 --> 00:20:51,180 and the sort of level of integration 350 00:20:51,180 --> 00:20:53,900 with the manufacturers and the products. 351 00:20:54,180 --> 00:20:57,000 There's the hardware products 352 00:20:57,000 --> 00:20:59,080 that are basically you just buy a box 353 00:20:59,080 --> 00:21:01,040 and they go all the way to the proprietary 354 00:21:01,040 --> 00:21:02,380 full interface type things 355 00:21:02,380 --> 00:21:03,540 that the manufacturers have. 356 00:21:04,420 --> 00:21:05,640 Things would be at the dealer. 357 00:21:06,080 --> 00:21:07,120 They're very functional. 358 00:21:07,280 --> 00:21:08,320 They have all sorts of, 359 00:21:08,400 --> 00:21:09,880 they can do just about anything 360 00:21:09,880 --> 00:21:12,860 that you can do on those diagnostic bus controls, 361 00:21:12,980 --> 00:21:13,360 just about anything, 362 00:21:13,520 --> 00:21:15,200 but they're typically in the 363 00:21:15,200 --> 00:21:17,340 tens of thousands of dollar range. 364 00:21:18,040 --> 00:21:21,140 There's also devices that plug into a PC 365 00:21:21,820 --> 00:21:26,100 and just provide basically a network interface to a PC, 366 00:21:26,200 --> 00:21:27,800 and then the PC runs software 367 00:21:27,800 --> 00:21:29,420 that provides some functionality. 368 00:21:29,420 --> 00:21:31,580 Often those are less functional. 369 00:21:31,640 --> 00:21:32,280 They're more general, 370 00:21:32,380 --> 00:21:35,540 so they support some common subset across vehicles, 371 00:21:35,680 --> 00:21:37,860 but they don't necessarily do every little feature 372 00:21:37,860 --> 00:21:38,980 of every vehicle out there. 373 00:21:40,260 --> 00:21:44,040 And those usually convert some type of serial RS-232 374 00:21:44,040 --> 00:21:46,640 or USB into the diagnostic buses. 375 00:21:47,300 --> 00:21:48,820 There's also chips, 376 00:21:48,900 --> 00:21:51,280 so we're getting down more into the level. 377 00:21:51,380 --> 00:21:53,380 There's chips that provide some of these functionality, 378 00:21:54,140 --> 00:21:57,420 which certainly could be the basis for the devices. 379 00:21:57,760 --> 00:21:59,400 And there's also chips 380 00:21:59,420 --> 00:22:02,340 that provide a few designs for real simple schematics 381 00:22:02,340 --> 00:22:04,860 or kind of hacks on the RS-232, 382 00:22:04,900 --> 00:22:07,340 TIA-232 serial port that will communicate 383 00:22:07,340 --> 00:22:08,880 with the ISO interface. 384 00:22:09,300 --> 00:22:11,420 The ISO interface, the bus, 385 00:22:11,560 --> 00:22:15,080 again, that's the bus that's defined by the ISO, 386 00:22:15,240 --> 00:22:19,100 but SAE references it sort of as a consideration 387 00:22:19,100 --> 00:22:21,280 to the European and Japanese car manufacturers 388 00:22:21,280 --> 00:22:24,320 that tend to go with ISO as opposed to SAE standards. 389 00:22:25,380 --> 00:22:27,780 And that data link layer is, 390 00:22:28,660 --> 00:22:33,060 looks roughly similar to what's a serial UART interface. 391 00:22:33,420 --> 00:22:35,860 So with just a physical layer conversion, 392 00:22:36,140 --> 00:22:38,780 you can actually plug a serial port on a PC into that. 393 00:22:42,520 --> 00:22:45,080 So then with some of these devices that are just hardware 394 00:22:45,080 --> 00:22:46,660 that plug into a computer, 395 00:22:46,740 --> 00:22:48,120 you need software on that, certainly. 396 00:22:48,440 --> 00:22:51,280 So there's numerous commercial and shareware products. 397 00:22:52,140 --> 00:22:53,820 Standard support is most common, 398 00:22:53,880 --> 00:22:54,740 sort of the common subset. 399 00:22:54,920 --> 00:22:56,040 I think it does the most number of vehicles, 400 00:22:56,140 --> 00:22:57,760 but doesn't do all the features. 401 00:22:57,780 --> 00:22:59,000 The new features of the vehicles. 402 00:22:59,360 --> 00:23:00,360 And some of them, 403 00:23:00,420 --> 00:23:02,200 there are a few that are manufacturer-specific, 404 00:23:03,060 --> 00:23:05,820 and those are more commonly the commercial products. 405 00:23:07,060 --> 00:23:09,820 And there's one notable free software project 406 00:23:09,820 --> 00:23:13,200 called FreeDiag that provides 407 00:23:13,780 --> 00:23:16,600 the basic scan tool operation and diagnostic procedures. 408 00:23:16,740 --> 00:23:21,340 It does not go into calibration of vehicle-specific things, 409 00:23:21,480 --> 00:23:22,460 nor does it really, 410 00:23:22,540 --> 00:23:24,360 there is some support for diagnostics 411 00:23:24,360 --> 00:23:25,560 on some proprietary buses, 412 00:23:25,620 --> 00:23:27,760 but there's not too much support 413 00:23:27,780 --> 00:23:29,880 certainly not the spectrum that's available 414 00:23:29,880 --> 00:23:33,260 from shareware or certainly commercial software. 415 00:23:36,960 --> 00:23:39,980 So OpenAuto is a project that I've been working on, 416 00:23:40,600 --> 00:23:43,560 and this is a bit of an overview of what that encompasses. 417 00:23:44,800 --> 00:23:46,940 I've been working on some hardware designs, 418 00:23:47,620 --> 00:23:53,720 another sort of variation on the RS-TIA232 to ISO bus interface 419 00:23:54,840 --> 00:23:57,040 to make use of some new chips 420 00:23:57,040 --> 00:23:59,820 that are fairly available now, fairly cheap. 421 00:24:00,340 --> 00:24:03,280 It's somewhat of a low part count, 422 00:24:03,500 --> 00:24:04,860 sort of easy to manufacture design, 423 00:24:04,980 --> 00:24:05,820 or easy to put together. 424 00:24:06,000 --> 00:24:08,180 I mean, you could, with two parts and samples 425 00:24:08,180 --> 00:24:09,320 from a couple of manufacturers, 426 00:24:09,600 --> 00:24:12,540 you could put that together by soldering 10 wires. 427 00:24:12,780 --> 00:24:14,720 So it's a pretty simple design. 428 00:24:15,420 --> 00:24:19,400 I'm also working on a repurposed USB serial adapter, 429 00:24:19,660 --> 00:24:25,000 basically taking a key-span USB to RS-232 interface 430 00:24:25,000 --> 00:24:27,020 and writing calls 431 00:24:27,040 --> 00:24:30,320 to custom firmware that will talk not only the ISO 432 00:24:30,320 --> 00:24:33,680 out of its RS-232 connector, 433 00:24:33,900 --> 00:24:34,940 which would be fairly easy to do, 434 00:24:35,060 --> 00:24:37,580 but also doing the VPW and PWM 435 00:24:38,060 --> 00:24:41,620 so that you can support all three of the OBD-II diagnostic buses 436 00:24:41,620 --> 00:24:44,300 with one device. 437 00:24:44,960 --> 00:24:46,820 And that's not complete, 438 00:24:46,960 --> 00:24:50,060 but I've been working on that the last few weeks, 439 00:24:50,820 --> 00:24:52,080 so that's sort of in progress. 440 00:24:52,840 --> 00:24:57,020 And software is a Layer 2 and a Layer 3 network stack. 441 00:24:57,040 --> 00:24:59,920 And some application software. 442 00:25:00,300 --> 00:25:04,460 The network stack is in sort of early alpha stage, 443 00:25:05,340 --> 00:25:06,800 primarily of use to develop... 444 00:25:06,800 --> 00:25:08,040 well, really only of use to developers. 445 00:25:08,540 --> 00:25:11,220 There aren't just test applications written, 446 00:25:11,300 --> 00:25:14,680 no scan tools or any diagnostic control, 447 00:25:14,900 --> 00:25:18,180 but it serves as a basis. 448 00:25:18,280 --> 00:25:20,480 It could serve as a basis for writing such applications. 449 00:25:21,460 --> 00:25:24,680 The approach taken by all the software packages 450 00:25:24,680 --> 00:25:26,760 that I've seen is to basically write 451 00:25:26,760 --> 00:25:28,480 one single monolithic application 452 00:25:28,480 --> 00:25:29,980 that talks all the way to the device, 453 00:25:30,160 --> 00:25:32,920 to the user interface in one single application. 454 00:25:33,960 --> 00:25:35,240 And what I'm trying to... 455 00:25:35,720 --> 00:25:39,520 my sort of theory of operation for OpenAuto 456 00:25:39,520 --> 00:25:44,360 is to provide the standard network stack type of software 457 00:25:44,360 --> 00:25:47,400 where each layer of the network 458 00:25:47,400 --> 00:25:49,760 is a separate piece of software, is a separate library, 459 00:25:49,820 --> 00:25:51,460 so that you can stack them up 460 00:25:51,460 --> 00:25:52,760 and you don't have to duplicate efforts 461 00:25:52,760 --> 00:25:54,520 when you want to write a new application. 462 00:25:54,520 --> 00:25:57,740 You can build on top of whatever standard layer 463 00:25:57,740 --> 00:25:59,360 that you're trying to work with. 464 00:25:59,840 --> 00:26:01,500 And all of the hardware and software designs 465 00:26:01,500 --> 00:26:03,500 are free software released under the GPL. 466 00:26:05,420 --> 00:26:06,460 So the network stack, 467 00:26:07,240 --> 00:26:09,860 trying to go for a common API across networks. 468 00:26:10,680 --> 00:26:12,380 Currently I'm working just with the ISO, 469 00:26:12,600 --> 00:26:15,240 but I'm planning to support VPW, PWM, and CAN, 470 00:26:15,420 --> 00:26:17,240 at least initially, and then, 471 00:26:17,300 --> 00:26:19,920 depending on what I can get access to 472 00:26:19,920 --> 00:26:21,940 as far as some of the other older buses, 473 00:26:22,420 --> 00:26:24,500 you know, I hope to be able to support that 474 00:26:24,520 --> 00:26:27,500 or at least have an API that can communicate with those 475 00:26:27,500 --> 00:26:29,660 if others would be interested in supporting that. 476 00:26:30,600 --> 00:26:32,840 It communicates the OBD2 data link layer. 477 00:26:33,240 --> 00:26:35,700 There's one for all of the... 478 00:26:36,620 --> 00:26:38,000 well, there's one that corresponds 479 00:26:38,000 --> 00:26:39,480 to each of the physical layers, 480 00:26:39,580 --> 00:26:41,980 so as the physical layers are implemented, 481 00:26:42,280 --> 00:26:43,740 so will be the data link layers. 482 00:26:44,520 --> 00:26:45,700 And then the network layer, 483 00:26:45,920 --> 00:26:47,600 initially I'm concentrating on OBD2 484 00:26:47,600 --> 00:26:48,860 because standards are available, 485 00:26:49,740 --> 00:26:53,220 but manufacturer extensions should be easily added 486 00:26:53,220 --> 00:26:54,860 if that information can be reverse engineered 487 00:26:54,860 --> 00:26:55,940 or otherwise obtained. 488 00:26:57,920 --> 00:27:01,040 And the applications, these are not written. 489 00:27:01,100 --> 00:27:02,580 These are just in the planning stage, 490 00:27:02,760 --> 00:27:06,260 but certainly a scan tool would be like baseline type of device 491 00:27:06,260 --> 00:27:08,860 that is, you know, commonly done elsewhere, 492 00:27:08,980 --> 00:27:12,400 but would just sort of prove out the network stack. 493 00:27:13,500 --> 00:27:15,380 And then a network probe and logging tool 494 00:27:15,380 --> 00:27:17,440 would be things like TCP dump, 495 00:27:17,580 --> 00:27:20,100 and just standard network diagnostic tools 496 00:27:20,100 --> 00:27:22,020 that are common in LAN networks, 497 00:27:22,020 --> 00:27:24,700 but would be certainly useful in automotive network too. 498 00:27:24,860 --> 00:27:26,960 But the automotive network hasn't been really approached 499 00:27:26,960 --> 00:27:27,900 as far as a data network. 500 00:27:28,060 --> 00:27:28,740 It's more of a... 501 00:27:29,880 --> 00:27:32,240 thought of as sort of in a different frame of mind, 502 00:27:32,300 --> 00:27:33,420 but I don't think it needs to be. 503 00:27:33,520 --> 00:27:35,420 So I think those tools would be very useful. 504 00:27:35,560 --> 00:27:38,580 So plan to get to those at some point. 505 00:27:39,140 --> 00:27:41,760 And that way, it'll sort of help in determining 506 00:27:41,760 --> 00:27:44,460 some of these manufacturer proprietary extensions 507 00:27:44,460 --> 00:27:47,140 where you can explore unidentified ECUs. 508 00:27:47,360 --> 00:27:51,480 If there's some ECU that never responds to you 509 00:27:51,480 --> 00:27:53,100 when you do any of the standard communications, 510 00:27:53,380 --> 00:27:55,960 but if you, you know, 511 00:27:55,980 --> 00:27:57,320 if you just go through all the addresses 512 00:27:57,320 --> 00:27:58,800 and you can find it that is there, 513 00:27:58,960 --> 00:28:00,520 perhaps it can serve some function. 514 00:28:00,640 --> 00:28:02,180 So they'll let you explore that. 515 00:28:02,480 --> 00:28:04,640 And also explore unknown packet formats. 516 00:28:05,540 --> 00:28:09,080 Put a sniffer in between one of the manufacturer's tools 517 00:28:09,080 --> 00:28:10,900 and the vehicle and log all the data 518 00:28:10,900 --> 00:28:12,880 and then use that to reverse engineer their protocol 519 00:28:12,880 --> 00:28:14,660 and then implement that in OpenAuto. 520 00:28:16,540 --> 00:28:19,120 Also some ideas for high-level monitoring and control 521 00:28:19,680 --> 00:28:21,380 where you can expand the diagnostics, 522 00:28:21,480 --> 00:28:24,140 beyond the minimal set for OBD2, 523 00:28:24,280 --> 00:28:27,400 potentially have some type of real-time logging 524 00:28:27,400 --> 00:28:29,320 that will just continually, as you drive, 525 00:28:29,520 --> 00:28:33,500 will tell you conditions that are not so severe 526 00:28:33,500 --> 00:28:34,840 to cause a DTC to be triggered, 527 00:28:34,880 --> 00:28:37,220 but potentially can, you know, 528 00:28:37,220 --> 00:28:39,500 alert you to a degraded operation of your vehicle 529 00:28:39,500 --> 00:28:42,680 before it gets to the point of a component actually failing. 530 00:28:43,740 --> 00:28:45,620 Logging for, you know, whatever purposes, 531 00:28:45,640 --> 00:28:48,580 if you want to, for more diagnostics 532 00:28:48,580 --> 00:28:49,880 or if you want to tune your vehicle, 533 00:28:49,880 --> 00:28:52,100 if you're trying to just determine performance data, 534 00:28:52,220 --> 00:28:54,220 you want to generate logging over time, 535 00:28:54,320 --> 00:28:55,860 would be a convenient way to do that. 536 00:28:57,340 --> 00:28:59,360 Other good things as well is a configurable UI 537 00:28:59,360 --> 00:29:00,620 for a detailed dashboard 538 00:29:00,620 --> 00:29:02,040 where you take all your gauges out 539 00:29:02,040 --> 00:29:02,880 and you put in an LCD 540 00:29:02,880 --> 00:29:05,160 and then each driver can have their own theme 541 00:29:05,160 --> 00:29:07,540 and, you know, have their own gauges displayed 542 00:29:07,540 --> 00:29:08,240 however they want. 543 00:29:08,380 --> 00:29:09,560 It can have, you know, 544 00:29:09,560 --> 00:29:11,020 someone can have just a speedometer 545 00:29:11,020 --> 00:29:13,640 and other people can add the output of other sensors 546 00:29:13,640 --> 00:29:15,720 if that, you know, suits their driving style. 547 00:29:18,440 --> 00:29:18,800 So... 548 00:29:20,100 --> 00:29:22,620 That about wraps up, you know, 549 00:29:22,640 --> 00:29:25,120 the onboard diagnostics and automotive networks. 550 00:29:26,140 --> 00:29:28,680 So I guess I'll open it up for questions or comments. 551 00:29:35,340 --> 00:29:36,360 The question was, 552 00:29:36,440 --> 00:29:38,180 can you access the CAN bus through the OBE connector? 553 00:29:38,540 --> 00:29:39,420 And yes, you can. 554 00:29:39,540 --> 00:29:41,760 The SAE standard for that connector 555 00:29:41,760 --> 00:29:43,860 also specifies a standard pinout. 556 00:29:43,960 --> 00:29:46,140 And that pinout says, basically, 557 00:29:46,140 --> 00:29:48,380 if you have the ISO bus, it has to be on this pin. 558 00:29:48,420 --> 00:29:49,420 If you have the VPW bus, 559 00:29:49,420 --> 00:29:50,240 it has to be on this pin. 560 00:29:50,520 --> 00:29:51,620 PWA bus on this pin. 561 00:29:51,820 --> 00:29:53,200 And the CAN bus on this pin. 562 00:29:53,280 --> 00:29:54,880 It doesn't have any other mention 563 00:29:54,880 --> 00:29:56,120 of what you would use a CAN for, 564 00:29:56,260 --> 00:29:57,360 but it says if you have a CAN, 565 00:29:57,540 --> 00:29:58,480 it should be on these pins. 566 00:29:59,060 --> 00:30:00,140 So it should be there 567 00:30:00,140 --> 00:30:01,080 and it should be in a standard place. 568 00:30:01,380 --> 00:30:02,760 So since the CAN bus is standard, 569 00:30:02,860 --> 00:30:04,460 you could potentially have a generic 570 00:30:05,000 --> 00:30:06,600 sort of network layer there 571 00:30:06,600 --> 00:30:08,300 to communicate with whatever you can find 572 00:30:08,300 --> 00:30:09,020 on the end of that bus. 573 00:30:11,080 --> 00:30:11,640 Other questions? 574 00:30:11,920 --> 00:30:12,320 Yeah, in the... 575 00:30:17,940 --> 00:30:18,380 Sorry. 576 00:30:20,760 --> 00:30:21,420 There's a question. 577 00:30:21,580 --> 00:30:23,820 Can you add new devices onto that bus? 578 00:30:25,000 --> 00:30:25,440 Yeah. 579 00:30:26,300 --> 00:30:30,000 Certainly, the OpenAuto architecture 580 00:30:30,000 --> 00:30:32,700 is just a network stack that communicates on this bus. 581 00:30:32,900 --> 00:30:35,640 So if you allocate the address for your ECU 582 00:30:35,640 --> 00:30:36,900 to be in the range, 583 00:30:36,980 --> 00:30:39,080 not for the off-board scan tool, 584 00:30:39,140 --> 00:30:41,560 but for an on-board, in the on-board range, 585 00:30:41,560 --> 00:30:44,760 and you don't obviously collide with an ECU that's there, 586 00:30:44,840 --> 00:30:45,860 which shouldn't be very hard, 587 00:30:45,920 --> 00:30:49,340 because there's a few hundred... 588 00:30:49,800 --> 00:30:51,240 I think it's a 7-bit number, 589 00:30:51,280 --> 00:30:52,880 so about 128 addresses. 590 00:30:53,220 --> 00:30:55,560 And most vehicles have less than 10 ECUs, 591 00:30:55,580 --> 00:30:57,020 so there should be plenty of addresses to pick from. 592 00:30:57,180 --> 00:30:58,380 But yeah, it certainly could be possible 593 00:30:58,380 --> 00:31:00,740 to add an ECU to the vehicle 594 00:31:00,740 --> 00:31:01,920 and communicate on that bus. 595 00:31:03,680 --> 00:31:04,200 Yeah, sure. 596 00:31:05,040 --> 00:31:07,100 Can you talk more about the privacy issues? 597 00:31:07,840 --> 00:31:09,760 Like, if you've got a rental car, 598 00:31:09,880 --> 00:31:11,540 what can you tell about the history of that? 599 00:31:14,020 --> 00:31:15,520 If you had a rental car, 600 00:31:16,740 --> 00:31:18,780 I don't know that there would necessarily be a lot 601 00:31:18,780 --> 00:31:20,400 you could tell, depending on... 602 00:31:20,400 --> 00:31:22,120 I mean, there could be some with OnStar 603 00:31:22,120 --> 00:31:23,220 and some navigation systems. 604 00:31:23,300 --> 00:31:24,940 There might be some proprietary ways 605 00:31:24,940 --> 00:31:26,560 you could look through the history of it. 606 00:31:27,320 --> 00:31:30,180 One thing you would most likely be able to tell 607 00:31:30,180 --> 00:31:32,580 is with the crash data recorder and the airbags, 608 00:31:32,780 --> 00:31:35,560 you wouldn't get a very detailed history, 609 00:31:35,760 --> 00:31:37,680 but you could tell if there had been 610 00:31:37,680 --> 00:31:38,900 a non-deployment event. 611 00:31:39,420 --> 00:31:41,040 Basically, if someone was reckless driving, 612 00:31:41,560 --> 00:31:42,840 unless to the point where the airbag deployed, 613 00:31:42,980 --> 00:31:43,480 but not quite, 614 00:31:43,680 --> 00:31:46,760 you could read back those parameters, 615 00:31:46,920 --> 00:31:48,500 whatever is stored on that vehicle. 616 00:31:49,740 --> 00:31:50,940 But other than that, 617 00:31:51,000 --> 00:31:53,460 there's not a lot of logging, 618 00:31:53,500 --> 00:31:54,740 no other logging that I'm aware of 619 00:31:54,740 --> 00:31:58,060 commonly used in ECUs in a vehicle, 620 00:31:58,200 --> 00:32:00,540 so there wouldn't be a whole lot of history available, 621 00:32:00,820 --> 00:32:01,120 I guess. 622 00:32:01,380 --> 00:32:03,240 But certainly that could change 623 00:32:03,240 --> 00:32:05,200 with more navigation systems 624 00:32:05,200 --> 00:32:09,160 that would give you things like position and time information 625 00:32:09,160 --> 00:32:11,540 and also the availability of more storage. 626 00:32:11,540 --> 00:32:12,840 To be able to just log all that 627 00:32:12,840 --> 00:32:15,660 and not worry about using up storage space. 628 00:32:17,060 --> 00:32:17,540 Sorry. 629 00:32:17,620 --> 00:32:17,980 Rear? 630 00:32:18,120 --> 00:32:20,180 How do you tell whether a car has a device 631 00:32:20,180 --> 00:32:22,360 that would somewhat tell where it is? 632 00:32:24,880 --> 00:32:25,800 Sorry, the question? 633 00:32:26,160 --> 00:32:28,680 That lets somebody in a home location 634 00:32:29,360 --> 00:32:31,140 picture where the car is. 635 00:32:33,160 --> 00:32:34,520 I guess the question was, 636 00:32:34,580 --> 00:32:35,880 how can you tell if there's 637 00:32:35,880 --> 00:32:38,600 some sort of remote transponder on a vehicle? 638 00:32:39,140 --> 00:32:39,260 Oh. 639 00:32:40,440 --> 00:32:40,960 There's, 640 00:32:42,580 --> 00:32:45,920 I guess there's a number of obvious signs of that. 641 00:32:46,140 --> 00:32:47,620 Certainly if it has OnStar, 642 00:32:47,800 --> 00:32:50,600 that's a capability of OnStar to be able to do that. 643 00:32:51,260 --> 00:32:54,340 I believe Ford has a similar system, 644 00:32:54,480 --> 00:32:56,320 it's more of their navigation system 645 00:32:56,320 --> 00:32:59,580 that has some sort of a crash recovery feature 646 00:32:59,580 --> 00:33:01,940 that's not used for asking for directions, 647 00:33:02,080 --> 00:33:03,260 but in the event of an accident, 648 00:33:03,380 --> 00:33:06,000 supposedly it can report your telemarketing information 649 00:33:06,000 --> 00:33:06,860 for rescue. 650 00:33:06,860 --> 00:33:10,360 But those are the only ones that I'm aware of. 651 00:33:10,520 --> 00:33:11,740 I mean, there's certainly a number of ways 652 00:33:11,740 --> 00:33:13,440 that I could probably think of 653 00:33:13,440 --> 00:33:15,200 about half a dozen off the top of my head 654 00:33:15,200 --> 00:33:17,500 of ways you could potentially set it up, 655 00:33:17,520 --> 00:33:20,220 set up a telemetry system on a vehicle. 656 00:33:20,780 --> 00:33:21,600 But I don't think, 657 00:33:21,740 --> 00:33:22,980 there's no OBD2, 658 00:33:23,080 --> 00:33:25,800 there's no SAE standard for that type of system. 659 00:33:25,940 --> 00:33:27,800 So it's really just, 660 00:33:27,920 --> 00:33:28,800 you know, up in the air, 661 00:33:28,820 --> 00:33:30,280 it could be implemented any number of different ways. 662 00:33:30,340 --> 00:33:30,820 There's not a con, 663 00:33:30,900 --> 00:33:33,360 besides the ones I mentioned of the OnStar 664 00:33:33,360 --> 00:33:34,640 and whatever's Ford, 665 00:33:34,780 --> 00:33:36,780 similar corollary system would be. 666 00:33:36,780 --> 00:33:39,820 I don't know of any other commonly used systems 667 00:33:39,820 --> 00:33:41,220 that would do that. 668 00:33:42,760 --> 00:33:43,400 I guess, 669 00:33:43,480 --> 00:33:45,460 so that reminds me of one more, 670 00:33:46,320 --> 00:33:48,100 just a little bit about sort of the privacy 671 00:33:48,100 --> 00:33:49,940 and the telemetry information is the, 672 00:33:50,440 --> 00:33:53,860 so this OBD2 is the current standard for, 673 00:33:54,060 --> 00:33:55,740 that's a federally mandated standard 674 00:33:55,740 --> 00:33:59,240 from the SAE for automotive diagnostics. 675 00:33:59,680 --> 00:34:03,700 There's been some talk about what will be OBD3, 676 00:34:03,760 --> 00:34:04,700 what will replace it. 677 00:34:05,080 --> 00:34:06,700 And I haven't seen anything concrete 678 00:34:06,780 --> 00:34:08,020 I've seen a lot of sort of rumors 679 00:34:08,020 --> 00:34:09,360 and discussions in trade journals. 680 00:34:09,500 --> 00:34:10,600 But I have seen, 681 00:34:10,720 --> 00:34:12,780 the only concrete thing referring to this I've seen 682 00:34:12,780 --> 00:34:14,720 is on the California Air Resource Board, 683 00:34:14,940 --> 00:34:17,680 which is sort of where the EPA gets its direction 684 00:34:17,680 --> 00:34:21,000 for what eventually becomes a nationwide standard. 685 00:34:21,280 --> 00:34:23,640 And they mentioned that there's going to be a feature 686 00:34:23,640 --> 00:34:25,100 or there's considering a feature 687 00:34:25,100 --> 00:34:27,340 that will make your vehicle inspections 688 00:34:27,340 --> 00:34:28,700 be much more convenient 689 00:34:28,700 --> 00:34:31,560 by continuously automatically reporting 690 00:34:31,560 --> 00:34:32,320 the state, 691 00:34:32,400 --> 00:34:33,640 operational state of your vehicle 692 00:34:33,640 --> 00:34:35,300 to remote transponders 693 00:34:35,300 --> 00:34:36,700 such that only the vehicles 694 00:34:36,780 --> 00:34:38,620 that are performing under spec 695 00:34:38,620 --> 00:34:41,680 will be required for an inspection. 696 00:34:42,000 --> 00:34:43,180 So certainly that could be, 697 00:34:43,600 --> 00:34:44,940 have all sorts of privacy implications 698 00:34:44,940 --> 00:34:47,140 if your vehicle is all the time 699 00:34:47,140 --> 00:34:49,680 or once a month is reporting its information 700 00:34:49,680 --> 00:34:51,280 to these beacons around your city, 701 00:34:51,300 --> 00:34:52,060 around your town. 702 00:34:52,740 --> 00:34:54,940 It could be reporting more than just 703 00:34:54,940 --> 00:34:56,000 emissions control data. 704 00:34:56,120 --> 00:34:56,840 It could be required, 705 00:34:57,020 --> 00:34:58,460 by the time OBD3 comes out, 706 00:34:58,480 --> 00:34:59,920 it could require GPS in your car 707 00:34:59,920 --> 00:35:00,840 and it could have your coordinates. 708 00:35:01,040 --> 00:35:02,740 Certainly have to identify your vehicle 709 00:35:02,740 --> 00:35:06,480 and I'm sure that someone will eventually find out 710 00:35:06,480 --> 00:35:07,600 how to decode that themselves 711 00:35:07,600 --> 00:35:09,480 and then you can just track people very easily 712 00:35:09,480 --> 00:35:11,260 with that type of system. 713 00:35:11,760 --> 00:35:12,240 What's that? 714 00:35:12,440 --> 00:35:13,640 More substitute your own data. 715 00:35:13,920 --> 00:35:14,820 More substitute your own data. 716 00:35:16,440 --> 00:35:17,300 Certainly, yes. 717 00:35:17,540 --> 00:35:18,680 You could do that. 718 00:35:18,860 --> 00:35:20,580 You could make a transponder 719 00:35:20,580 --> 00:35:21,740 that continually just reports, 720 00:35:21,900 --> 00:35:22,860 yes, my vehicle's fine, 721 00:35:22,940 --> 00:35:23,560 everything's perfect. 722 00:35:23,880 --> 00:35:25,800 Just kind of get a record 723 00:35:25,800 --> 00:35:29,700 of what the proper operational message is 724 00:35:29,700 --> 00:35:31,280 and then just continually play back that forever 725 00:35:31,280 --> 00:35:33,560 and disconnect the real transmitter. 726 00:35:33,840 --> 00:35:36,100 So there's certainly a lot of flaws 727 00:35:36,100 --> 00:35:36,460 in that system. 728 00:35:36,480 --> 00:35:37,340 And I'm not sure 729 00:35:37,340 --> 00:35:38,500 how much of any of that 730 00:35:38,500 --> 00:35:39,200 is being thought out 731 00:35:39,200 --> 00:35:42,100 because all I've seen concretely about it 732 00:35:42,100 --> 00:35:42,860 from authoritative sources 733 00:35:43,480 --> 00:35:45,900 is just a very vague comment 734 00:35:45,900 --> 00:35:47,700 on the California Air Resource Board site. 735 00:35:49,180 --> 00:35:50,100 Sorry, more questions? 736 00:35:50,720 --> 00:35:51,020 Yep. 737 00:35:51,920 --> 00:35:52,440 . 738 00:36:05,560 --> 00:36:06,720 The question was, 739 00:36:06,800 --> 00:36:09,340 the ECU stores the vehicle identification number, 740 00:36:09,460 --> 00:36:12,480 so what does that do for aftermarket mechanics 741 00:36:12,480 --> 00:36:15,460 that will swap ECUs for vehicles 742 00:36:15,460 --> 00:36:17,540 that have been damaged or need to be repaired? 743 00:36:18,180 --> 00:36:20,380 That can cause a significant amount of a problem, 744 00:36:20,420 --> 00:36:20,920 I'd imagine, 745 00:36:21,020 --> 00:36:22,820 and I know I haven't seen anything 746 00:36:22,820 --> 00:36:24,200 with reference to the VIN, 747 00:36:24,220 --> 00:36:26,380 but I know there's a lot of problems 748 00:36:26,380 --> 00:36:30,480 with odometers that when you use an ECU 749 00:36:30,480 --> 00:36:30,740 that has, 750 00:36:30,840 --> 00:36:32,760 because the odometer is in a lot of vehicles nowadays, 751 00:36:32,860 --> 00:36:34,100 it's displayed on LCD 752 00:36:34,100 --> 00:36:36,520 and it's information stored in an ECU 753 00:36:36,520 --> 00:36:37,680 in memory somehow. 754 00:36:37,940 --> 00:36:40,160 And so there are ways 755 00:36:40,160 --> 00:36:42,740 to reprogram them a single time 756 00:36:42,740 --> 00:36:44,840 or certain procedures you have to go through 757 00:36:44,840 --> 00:36:46,700 to get them to be reprogrammed. 758 00:36:46,700 --> 00:36:48,560 And I imagine they'd be similar for the VIN, 759 00:36:48,600 --> 00:36:49,660 but I also imagine 760 00:36:49,660 --> 00:36:50,780 that it probably will be very difficult, 761 00:36:50,920 --> 00:36:51,940 because I know that in other, 762 00:36:53,200 --> 00:36:54,900 more for anti-theft systems, 763 00:36:55,860 --> 00:36:59,800 sometimes there's pairing of certain electronic components 764 00:36:59,800 --> 00:37:01,500 where certain ECUs will only work 765 00:37:01,500 --> 00:37:03,580 with their corollary ECU. 766 00:37:04,720 --> 00:37:07,400 Specifically, the vehicle I drive, 767 00:37:08,740 --> 00:37:11,140 there's trouble putting in a replacement engine 768 00:37:11,140 --> 00:37:13,160 because you have to put in a replacement ECU 769 00:37:13,160 --> 00:37:14,740 at the same time you put in a replacement engine, 770 00:37:15,560 --> 00:37:16,760 otherwise it just won't work. 771 00:37:17,340 --> 00:37:19,200 Basically, you can't replace your engine 772 00:37:19,200 --> 00:37:20,100 or your ECU separately, 773 00:37:20,260 --> 00:37:21,720 you have to replace them both together. 774 00:37:24,260 --> 00:37:25,160 Other questions? 775 00:37:50,000 --> 00:37:53,180 And a lot of the OnStar system, 776 00:37:53,400 --> 00:37:54,140 it actually goes, 777 00:37:54,260 --> 00:37:54,580 you know, 778 00:37:54,620 --> 00:37:55,220 you're probably going to need 779 00:37:55,220 --> 00:37:57,240 to lock the car, 780 00:37:57,320 --> 00:37:59,700 so it's only going to lock your car phone, 781 00:38:00,320 --> 00:38:02,000 so it's sort of on the plus 782 00:38:02,000 --> 00:38:03,280 because it has to do it 783 00:38:03,280 --> 00:38:04,660 with the car phone. 784 00:38:05,940 --> 00:38:10,040 Yeah, they can do OnStar, 785 00:38:10,100 --> 00:38:11,300 they can do all sorts of things remotely, 786 00:38:11,700 --> 00:38:12,800 which makes it kind of scary. 787 00:38:12,900 --> 00:38:14,760 They can read back just about anything 788 00:38:14,760 --> 00:38:15,600 from the vehicle. 789 00:38:15,620 --> 00:38:17,380 I mean, they can start your vehicle remotely 790 00:38:17,380 --> 00:38:18,280 over the phone. 791 00:38:19,920 --> 00:38:21,600 I actually had a discussion with 792 00:38:21,600 --> 00:38:24,100 an OnStar salesperson one time 793 00:38:24,100 --> 00:38:27,080 about some of the privacy and security of that, 794 00:38:27,180 --> 00:38:28,720 and their best answer was, 795 00:38:29,000 --> 00:38:30,740 well, we have a policy 796 00:38:30,740 --> 00:38:32,620 and we train our people well, 797 00:38:32,760 --> 00:38:34,480 and I don't know any more than that. 798 00:38:34,780 --> 00:38:37,400 So personally, I don't trust them very much 799 00:38:37,400 --> 00:38:39,420 because I doubt their policy is enough 800 00:38:39,420 --> 00:38:41,500 to really do anything in the face 801 00:38:41,500 --> 00:38:43,380 of something going wrong, 802 00:38:43,440 --> 00:38:44,460 and I really doubt that they have 803 00:38:44,460 --> 00:38:47,480 too much security on top of their system 804 00:38:47,480 --> 00:38:48,580 to make sure that it's hard 805 00:38:48,580 --> 00:38:51,120 to spoof and do bad things. 806 00:38:51,520 --> 00:38:53,220 Got a question? 807 00:38:56,900 --> 00:39:00,820 The question was, 808 00:39:00,940 --> 00:39:02,940 on Bluetooth-enabled vehicles nowadays, 809 00:39:03,220 --> 00:39:05,300 is Bluetooth on the can? 810 00:39:05,940 --> 00:39:06,780 I'm not sure. 811 00:39:06,900 --> 00:39:07,800 I don't have any familiarity 812 00:39:07,800 --> 00:39:09,220 with any of those vehicles, 813 00:39:09,400 --> 00:39:11,340 but I would imagine in some fashion, 814 00:39:11,460 --> 00:39:13,780 there's probably some interlock there 815 00:39:13,780 --> 00:39:15,580 so that, for example, 816 00:39:15,580 --> 00:39:17,060 if your phone rings, 817 00:39:17,260 --> 00:39:18,560 it can automatically mute your phone. 818 00:39:18,580 --> 00:39:19,620 Or mute your stereo, 819 00:39:19,920 --> 00:39:23,540 or perhaps they can do even more sinister things 820 00:39:23,540 --> 00:39:25,760 like make sure that the vehicle 821 00:39:25,760 --> 00:39:26,900 is operating in a particular way, 822 00:39:26,980 --> 00:39:27,860 or hang up your phone 823 00:39:27,860 --> 00:39:30,340 if your car is steered too erratically 824 00:39:30,340 --> 00:39:31,020 or something like that. 825 00:39:31,180 --> 00:39:31,640 I mean, I don't know. 826 00:39:31,680 --> 00:39:32,480 That's a little far-fetched, 827 00:39:32,600 --> 00:39:34,280 but I do think that the muting the audio 828 00:39:34,280 --> 00:39:35,980 of a stereo when the phone rings 829 00:39:35,980 --> 00:39:38,220 is something that would be very likely done, 830 00:39:38,380 --> 00:39:39,060 but I'm not sure. 831 00:39:39,100 --> 00:39:39,800 That's just speculation. 832 00:39:40,040 --> 00:39:40,900 I'm not fully aware. 833 00:39:43,000 --> 00:39:45,800 A lot of cell phone hands-free kits 834 00:39:45,800 --> 00:39:47,540 that you install on cars now that are wired 835 00:39:47,540 --> 00:39:48,900 have a line in them 836 00:39:48,900 --> 00:39:50,880 that you can either run through a relay 837 00:39:50,880 --> 00:39:52,800 and drop the switch power 838 00:39:52,800 --> 00:39:55,280 or one of the more higher-end stereos 839 00:39:55,280 --> 00:39:56,740 or a lot of the OEM stereos 840 00:39:56,740 --> 00:39:59,420 have an entertainment view line 841 00:39:59,420 --> 00:40:01,300 where if the cell phone is in use, 842 00:40:01,300 --> 00:40:02,660 it'll actually drop that line 843 00:40:02,660 --> 00:40:04,340 and cut the audio with the higher audio. 844 00:40:04,680 --> 00:40:05,220 Right, yeah. 845 00:40:05,300 --> 00:40:06,320 The comment was that there's 846 00:40:06,320 --> 00:40:07,920 a lot of out-of-market stereos 847 00:40:07,920 --> 00:40:10,360 and factory stereos have a line 848 00:40:10,360 --> 00:40:11,360 that's sort of a relay output 849 00:40:11,360 --> 00:40:12,640 to be able to control this function, 850 00:40:12,800 --> 00:40:14,160 but I think that's sort of 851 00:40:14,160 --> 00:40:16,000 more of an old technology way to do it, 852 00:40:16,040 --> 00:40:17,460 and communicating over the camera 853 00:40:17,540 --> 00:40:18,140 to the home bus with a message, 854 00:40:18,280 --> 00:40:19,220 that would be, I think, 855 00:40:19,260 --> 00:40:20,340 the way things are going in the future. 856 00:40:25,720 --> 00:40:28,080 And it's more of a shared network 857 00:40:28,080 --> 00:40:30,780 as opposed to a one wire for every function you need. 858 00:40:30,840 --> 00:40:32,720 You have a pair of wires for your can 859 00:40:32,720 --> 00:40:33,420 all around your vehicle, 860 00:40:33,520 --> 00:40:34,580 and that does everything. 861 00:40:34,760 --> 00:40:35,380 You don't have to have 862 00:40:35,380 --> 00:40:37,160 dozens of wires going back and forth, 863 00:40:37,220 --> 00:40:38,280 spidering all through the vehicle. 864 00:40:40,000 --> 00:40:40,400 Yes? 865 00:40:40,940 --> 00:40:41,900 Just out of curiosity, 866 00:40:42,340 --> 00:40:43,280 do you have any idea 867 00:40:43,280 --> 00:40:46,340 how much code is in the software 868 00:40:46,340 --> 00:40:47,280 of a typical vehicle 869 00:40:47,780 --> 00:40:49,400 and what kind of memory 870 00:40:49,400 --> 00:40:51,280 and processing power they have? 871 00:40:51,800 --> 00:40:54,100 The question was how much code, 872 00:40:54,200 --> 00:40:55,100 as far as quantity, 873 00:40:55,360 --> 00:40:57,060 is in the ECUs 874 00:40:57,060 --> 00:40:59,180 and what type of processing is in it. 875 00:41:00,620 --> 00:41:02,100 Certainly in, say, 876 00:41:02,140 --> 00:41:03,040 five to ten years ago, 877 00:41:03,280 --> 00:41:05,480 8-bit microcontrollers were very common, 878 00:41:05,520 --> 00:41:08,700 and 8 or 32k of memory 879 00:41:08,700 --> 00:41:09,640 was very common. 880 00:41:10,760 --> 00:41:13,660 I think modern vehicles are still used, 881 00:41:14,200 --> 00:41:15,730 some of them still use 8-bit microcontrollers 882 00:41:16,220 --> 00:41:17,040 for a number of functions. 883 00:41:17,040 --> 00:41:18,720 Some of the more enhanced ones, 884 00:41:18,840 --> 00:41:22,820 and they also have code that's maybe 32, 64k, 885 00:41:22,920 --> 00:41:24,120 and they also have a number of ECUs. 886 00:41:24,180 --> 00:41:27,240 Instead of having one ECU with 8k of memory, 887 00:41:27,320 --> 00:41:28,380 there's five ECUs, 888 00:41:28,440 --> 00:41:29,740 and each one has 32k of memory, 889 00:41:29,820 --> 00:41:31,660 so they're sort of parallel in that sense 890 00:41:31,660 --> 00:41:33,100 that there's multiple ECUs 891 00:41:33,100 --> 00:41:34,360 each serving separate functions. 892 00:41:34,820 --> 00:41:37,140 The average processor is about 40 megahertz, 893 00:41:37,340 --> 00:41:40,460 and 1 to 2 mega of storage. 894 00:41:40,600 --> 00:41:41,560 No, the comment was 895 00:41:41,560 --> 00:41:43,720 the average processor is about 40 megahertz 896 00:41:43,720 --> 00:41:45,140 and 1 to 2 mega of storage. 897 00:41:47,180 --> 00:41:47,660 Yep. 898 00:41:48,880 --> 00:41:51,580 Would it be possible to scale 899 00:41:52,240 --> 00:41:55,540 like a OnStar frequency, 900 00:41:55,760 --> 00:41:57,400 such as you would, like, 901 00:41:57,400 --> 00:41:58,700 in the Warcraft or something? 902 00:41:59,140 --> 00:42:02,660 Could you scale for OnStar? 903 00:42:03,820 --> 00:42:05,100 It's just, it's cell phone. 904 00:42:05,400 --> 00:42:05,880 Yeah. 905 00:42:06,200 --> 00:42:07,200 And CDMA, 906 00:42:07,300 --> 00:42:08,760 and OnStar, 907 00:42:09,300 --> 00:42:11,160 the newer versions of CDMA. 908 00:42:11,840 --> 00:42:12,720 No, the comment was 909 00:42:12,720 --> 00:42:14,140 the newer versions of OnStar or CDMA. 910 00:42:14,320 --> 00:42:15,660 But I do believe that they do 911 00:42:15,660 --> 00:42:17,580 their data in band in their voice channel, 912 00:42:17,660 --> 00:42:18,540 because the demo I saw, 913 00:42:19,160 --> 00:42:23,560 when they called up the OnStar representative 914 00:42:23,560 --> 00:42:24,720 and told them that they were locked, 915 00:42:24,760 --> 00:42:25,960 they locked themselves out of the vehicle, 916 00:42:26,240 --> 00:42:27,780 since they're calling from the vehicle, 917 00:42:27,880 --> 00:42:28,780 the OnStar person said, 918 00:42:28,860 --> 00:42:30,860 let me wait, disconnect you for 10 seconds, 919 00:42:31,080 --> 00:42:31,860 and they disconnected, 920 00:42:32,140 --> 00:42:32,720 the door's unlocked, 921 00:42:32,940 --> 00:42:34,000 and then they came back on the line, 922 00:42:34,120 --> 00:42:35,620 reconnected the voice conversation. 923 00:42:35,900 --> 00:42:38,120 So I believe that they're probably doing 924 00:42:38,120 --> 00:42:40,340 some type of audio frequency shift keying 925 00:42:40,340 --> 00:42:41,840 through the voice channel 926 00:42:41,840 --> 00:42:43,280 or some other type of modem 927 00:42:43,280 --> 00:42:44,060 through the voice channel 928 00:42:44,060 --> 00:42:45,880 of a cell phone. 929 00:42:46,080 --> 00:42:46,820 So next year, 930 00:42:46,840 --> 00:42:47,620 you'll have that encoded. 931 00:42:48,320 --> 00:42:48,720 Hopefully. 932 00:42:50,740 --> 00:42:51,900 Have you heard more 933 00:42:51,900 --> 00:42:54,580 about cryptography on the buses? 934 00:42:55,040 --> 00:42:55,860 Yeah, the question was 935 00:42:55,860 --> 00:42:57,020 if I heard more about cryptography. 936 00:42:57,040 --> 00:42:57,900 Sorry, was there more than that? 937 00:42:58,780 --> 00:43:01,080 Yeah, so the cryptography on the buses, 938 00:43:01,100 --> 00:43:03,100 the only thing I know as far as 939 00:43:03,100 --> 00:43:04,520 any type of security feature 940 00:43:04,520 --> 00:43:07,140 is the security feature in the OBD2, 941 00:43:07,220 --> 00:43:09,760 and that's really just a challenge response type of, 942 00:43:10,260 --> 00:43:11,540 it gives you a seed, 943 00:43:11,640 --> 00:43:12,500 and you have to give it back 944 00:43:12,500 --> 00:43:13,620 the corresponding key, 945 00:43:13,620 --> 00:43:16,600 and those are 16 bits each way, 946 00:43:17,060 --> 00:43:19,080 and that's the only security 947 00:43:19,080 --> 00:43:19,740 that I'm aware of 948 00:43:19,740 --> 00:43:20,420 that the vehicles do. 949 00:43:20,560 --> 00:43:21,640 I think some of them also 950 00:43:21,640 --> 00:43:23,540 have a security through obscurity 951 00:43:23,540 --> 00:43:25,060 where they have a checksum 952 00:43:25,060 --> 00:43:26,540 in an odd place in their memory map, 953 00:43:26,680 --> 00:43:27,460 and they have an algorithm 954 00:43:27,460 --> 00:43:29,000 that people don't know, 955 00:43:29,100 --> 00:43:30,120 but it's not really a, 956 00:43:30,120 --> 00:43:32,200 I doubt it's a cryptographic secure algorithm, 957 00:43:32,360 --> 00:43:33,500 it's just an unknown algorithm. 958 00:43:34,240 --> 00:43:34,640 So, 959 00:43:34,740 --> 00:43:35,960 because I know a number of people 960 00:43:35,960 --> 00:43:36,640 that have reverse engineered 961 00:43:36,640 --> 00:43:37,700 different ones, 962 00:43:37,800 --> 00:43:38,600 so if, you know, 963 00:43:38,620 --> 00:43:40,120 the fewer vehicles that have 964 00:43:40,120 --> 00:43:41,560 a particular algorithm on it, 965 00:43:41,640 --> 00:43:43,220 the sort of less interest there is to, 966 00:43:43,220 --> 00:43:45,480 to reverse engineer it, 967 00:43:45,560 --> 00:43:45,780 and, 968 00:43:46,240 --> 00:43:46,980 I mean, I don't know, 969 00:43:47,060 --> 00:43:47,820 it's terribly effective, 970 00:43:48,000 --> 00:43:49,120 but I think that there's 971 00:43:49,120 --> 00:43:50,200 very, very crude, 972 00:43:50,360 --> 00:43:50,900 and, I mean, 973 00:43:50,920 --> 00:43:52,260 it's hard to really even call 974 00:43:52,260 --> 00:43:53,560 what they do cryptography. 975 00:44:03,000 --> 00:44:04,000 The question was, 976 00:44:04,080 --> 00:44:05,040 what type of storage devices 977 00:44:05,040 --> 00:44:05,720 do they use? 978 00:44:06,920 --> 00:44:08,360 EEPROM is commonly used 979 00:44:08,360 --> 00:44:09,620 because they want to, 980 00:44:09,680 --> 00:44:10,660 because you need to be able to 981 00:44:11,500 --> 00:44:12,640 store small amounts of data, 982 00:44:12,720 --> 00:44:12,920 you know, 983 00:44:13,220 --> 00:44:13,640 you don't, 984 00:44:13,640 --> 00:44:15,680 a flash memory wouldn't be sufficient 985 00:44:15,680 --> 00:44:18,120 because a DTC is two bytes, 986 00:44:18,300 --> 00:44:19,140 you know, 987 00:44:19,160 --> 00:44:20,160 some of the freeze frame data 988 00:44:20,160 --> 00:44:21,040 is just a few bytes, 989 00:44:21,140 --> 00:44:22,780 so they need to be able to 990 00:44:22,780 --> 00:44:24,480 store those periodically 991 00:44:24,480 --> 00:44:25,000 and also, 992 00:44:25,060 --> 00:44:26,080 you know, 993 00:44:26,100 --> 00:44:26,640 share the memory 994 00:44:26,640 --> 00:44:27,780 with storing calibration data 995 00:44:27,780 --> 00:44:29,260 which is only written 996 00:44:29,260 --> 00:44:30,000 once in the factory 997 00:44:30,000 --> 00:44:31,040 or whatnot, 998 00:44:31,180 --> 00:44:31,900 so the EEE, 999 00:44:31,920 --> 00:44:34,080 electrically erasable PROMs 1000 00:44:34,600 --> 00:44:35,620 is what they use. 1001 00:44:37,600 --> 00:44:38,360 Other questions? 1002 00:44:38,660 --> 00:44:38,720 Yeah. 1003 00:44:38,820 --> 00:44:39,880 For open auto, 1004 00:44:40,000 --> 00:44:41,820 is it ready to drive 1005 00:44:41,820 --> 00:44:43,200 with the USB drive 1006 00:44:43,200 --> 00:44:45,360 or is it like an OBD device driver? 1007 00:44:46,940 --> 00:44:47,860 The question was, 1008 00:44:47,980 --> 00:44:49,140 have I considered writing it 1009 00:44:49,140 --> 00:44:50,560 as an OBD device driver? 1010 00:44:52,000 --> 00:44:53,160 I'm not quite sure 1011 00:44:53,160 --> 00:44:53,540 what the, 1012 00:44:54,140 --> 00:44:54,860 what you're asking, 1013 00:44:54,960 --> 00:44:55,900 but I think that is 1014 00:44:55,900 --> 00:44:57,380 basically what I'm doing. 1015 00:44:57,980 --> 00:44:58,460 . 1016 00:45:05,300 --> 00:45:05,780 Yeah, 1017 00:45:05,860 --> 00:45:07,240 the question was, 1018 00:45:08,000 --> 00:45:09,280 or the comment was, 1019 00:45:09,320 --> 00:45:11,060 to have it as a kernel device driver 1020 00:45:11,060 --> 00:45:12,600 just like as a network interface, 1021 00:45:12,600 --> 00:45:14,060 like other network interfaces 1022 00:45:14,060 --> 00:45:14,540 in the vehicle, 1023 00:45:14,700 --> 00:45:15,320 and yes, 1024 00:45:15,400 --> 00:45:16,140 I have considered that 1025 00:45:17,080 --> 00:45:18,200 and that's sort of, 1026 00:45:19,160 --> 00:45:20,060 I see that as like 1027 00:45:20,060 --> 00:45:20,560 a later step 1028 00:45:20,560 --> 00:45:21,320 to what I'm doing now 1029 00:45:21,320 --> 00:45:22,500 just because of the ability 1030 00:45:22,500 --> 00:45:23,580 to develop it 1031 00:45:23,580 --> 00:45:24,620 and some of the, 1032 00:45:24,620 --> 00:45:26,580 some of the common reasons 1033 00:45:26,580 --> 00:45:28,100 why one would want to do that 1034 00:45:28,100 --> 00:45:29,340 for normally network interfaces 1035 00:45:29,340 --> 00:45:31,560 isn't so much of a concern 1036 00:45:31,560 --> 00:45:32,320 for open auto, 1037 00:45:32,440 --> 00:45:33,540 things like performance 1038 00:45:34,340 --> 00:45:35,580 and some of the other integration 1039 00:45:35,580 --> 00:45:36,960 with the other utilities 1040 00:45:36,960 --> 00:45:38,160 where you're not going to run, 1041 00:45:38,300 --> 00:45:38,480 well, 1042 00:45:38,580 --> 00:45:39,220 I suppose you could, 1043 00:45:39,320 --> 00:45:39,760 it would be, 1044 00:45:40,160 --> 00:45:41,040 I don't see what, 1045 00:45:41,220 --> 00:45:42,360 it wouldn't be a high priority 1046 00:45:42,600 --> 00:45:44,340 to tunnel IP over OBD2, 1047 00:45:44,520 --> 00:45:46,020 but potentially you could do that 1048 00:45:46,020 --> 00:45:47,400 if you had something set up 1049 00:45:47,400 --> 00:45:48,060 and that one might be 1050 00:45:48,060 --> 00:45:48,620 an interesting thing 1051 00:45:48,620 --> 00:45:49,300 to play around with. 1052 00:45:49,760 --> 00:45:50,040 . 1053 00:45:51,080 --> 00:45:51,480 Yeah, 1054 00:45:51,560 --> 00:45:51,740 certainly, 1055 00:45:51,920 --> 00:45:52,600 that's actually something 1056 00:45:52,600 --> 00:45:53,500 I've been thinking about too 1057 00:45:53,500 --> 00:45:54,140 where you could have 1058 00:45:54,140 --> 00:45:55,340 some sort of small device 1059 00:45:55,340 --> 00:45:55,800 on a vehicle 1060 00:45:55,800 --> 00:45:56,860 that talks OBD 1061 00:45:56,860 --> 00:45:58,040 and has Ethernet or something 1062 00:45:58,040 --> 00:45:58,920 that you can connect 1063 00:45:58,920 --> 00:45:59,440 through, 1064 00:45:59,860 --> 00:46:00,440 you know, 1065 00:46:00,440 --> 00:46:01,280 a computer in the back 1066 00:46:01,280 --> 00:46:01,760 of your vehicle 1067 00:46:01,760 --> 00:46:04,160 or tunnel it over 802.0.11 1068 00:46:04,160 --> 00:46:05,400 out to a service shop 1069 00:46:05,400 --> 00:46:06,140 or something like that, 1070 00:46:06,560 --> 00:46:07,180 but yeah, 1071 00:46:07,260 --> 00:46:07,980 I have considered that, 1072 00:46:08,060 --> 00:46:09,520 but I'd see that sort of 1073 00:46:09,520 --> 00:46:10,140 as a later stage 1074 00:46:10,140 --> 00:46:11,380 to just getting the driver stable 1075 00:46:12,600 --> 00:46:13,080 because there's not a lot 1076 00:46:13,080 --> 00:46:13,780 of benefit to doing it 1077 00:46:13,780 --> 00:46:14,120 at this point 1078 00:46:14,120 --> 00:46:15,300 and just would complicate 1079 00:46:15,300 --> 00:46:16,100 the development cycle. 1080 00:46:20,120 --> 00:46:20,720 Other questions? 1081 00:46:24,960 --> 00:46:25,480 All right, 1082 00:46:25,520 --> 00:46:26,800 I guess that wraps it up. 1083 00:46:27,000 --> 00:46:27,500 Thanks a lot. 1084 00:46:42,600 --> 00:46:43,600 . 1085 00:46:43,600 --> 00:46:43,860 . 1086 00:46:47,780 --> 00:46:49,180 .