1 00:00:00,580 --> 00:00:07,940 Welcome to the annual DEF CON convention. This meeting was held in exciting Las Vegas, Nevada from July 9th through the 11th, 1999. 2 00:00:09,920 --> 00:00:14,320 This is video tape number 52, Embedded Systems Hacking. 3 00:00:20,920 --> 00:00:23,720 This is not going to be hacking into embedded systems. 4 00:00:23,720 --> 00:00:33,380 This is actually going to be how to build yourself a nice little black box to assist in either hacking or denial of service or anything you really bloody want. 5 00:00:33,620 --> 00:00:37,700 Actually, a good segue was what we just saw previously with the wearable computers. 6 00:00:38,000 --> 00:00:40,960 This is indeed a type of embedded system. 7 00:00:41,540 --> 00:00:47,100 I'm not going to get into it because, to be honest, I know squat about video and it's basically all about video. 8 00:00:48,540 --> 00:00:50,980 Everyone knows what an embedded system is. 9 00:00:51,200 --> 00:00:52,340 I mean, if it wasn't for it. 10 00:00:53,120 --> 00:00:53,700 Embedded systems. 11 00:00:53,720 --> 00:00:56,320 Telecommunications, as we know it wouldn't exist already. 12 00:00:56,660 --> 00:01:05,460 The modems, the telephone switches, the routers, everything that most people go through to get into the internet and get through the internet is an embedded system. 13 00:01:06,280 --> 00:01:12,200 Basically, what this is, is a computer that's built into a box. 14 00:01:12,280 --> 00:01:17,500 Usually no real accesses other than telnet, some sort of an ethernet or T1 port. 15 00:01:18,000 --> 00:01:19,000 There's no keyboard. 16 00:01:19,200 --> 00:01:19,920 There's no monitor. 17 00:01:20,200 --> 00:01:22,460 And it does a very specialized... 18 00:01:23,520 --> 00:01:23,940 ...purpose. 19 00:01:24,420 --> 00:01:27,420 So it doesn't do three-toying things just like your PC does, unfortunately. 20 00:01:28,920 --> 00:01:31,820 Though, some people end up throwing in little fun hooks. 21 00:01:32,120 --> 00:01:35,800 If you know the right commands, you can suddenly play Space Invaders on your mobile. 22 00:01:36,680 --> 00:01:38,160 But, this is a little unusual. 23 00:01:39,560 --> 00:01:43,920 Most people don't bother to do embedded systems, even though these could be convenient in the hacking environment. 24 00:01:44,780 --> 00:01:48,460 Specifically, you can build a nice little small box that's easy to avoid. 25 00:01:48,580 --> 00:01:49,700 And it's the protection. 26 00:01:49,900 --> 00:01:51,500 You could throw something in the Kleenex box. 27 00:01:52,460 --> 00:01:53,580 No one knows what it is. 28 00:01:53,640 --> 00:01:56,300 And yet, you can be sitting there sniffing for all you want. 29 00:01:57,500 --> 00:01:59,020 But, no one seems to do it. 30 00:01:59,040 --> 00:02:04,140 Partially, it's because no one seems to be truly aware that they can build a nice little box. 31 00:02:04,400 --> 00:02:07,180 Or they don't think they have the skill set to do it. 32 00:02:07,260 --> 00:02:08,300 It's really pretty easy nowadays. 33 00:02:09,420 --> 00:02:10,140 There's actual... 34 00:02:10,500 --> 00:02:14,320 If you go into Embedded Systems Journal, on the back, you've got demo boards. 35 00:02:15,040 --> 00:02:17,540 These demo boards will have everything you want on it. 36 00:02:17,600 --> 00:02:19,120 There's going to be a built-in processor. 37 00:02:19,360 --> 00:02:20,640 You'll probably have an ethernet port. 38 00:02:20,840 --> 00:02:21,840 A T1 port. 39 00:02:21,840 --> 00:02:23,860 Or you'll have to throw software on it. 40 00:02:23,900 --> 00:02:26,620 And most manufacturers even provide software for you. 41 00:02:26,880 --> 00:02:29,080 So it's not very difficult anymore. 42 00:02:30,400 --> 00:02:34,320 Another problem that most people consider when they're involved with embedded systems is price. 43 00:02:34,480 --> 00:02:37,380 Because you're actually going to have to buy all your individual components. 44 00:02:37,660 --> 00:02:39,700 You're going to have to go out and get an i960. 45 00:02:39,960 --> 00:02:42,060 You're going to have to go out and get a T1 chip. 46 00:02:42,300 --> 00:02:43,840 Or you have to get the demo board. 47 00:02:44,120 --> 00:02:48,960 Now, one of the easiest ways to avoid the price thing is to salvage from old ports. 48 00:02:48,960 --> 00:02:51,600 You've got a 386 sitting around you've got no use for. 49 00:02:51,720 --> 00:02:54,140 Holler at your soldering iron and yank that chip. 50 00:02:54,720 --> 00:02:56,120 Find an old ethernet card. 51 00:02:56,240 --> 00:02:57,180 Yank the chip there. 52 00:02:57,640 --> 00:02:59,580 Suddenly you're not having to pay for components. 53 00:02:59,760 --> 00:03:01,120 You just have to slap them all together. 54 00:03:01,500 --> 00:03:02,740 Which is not that difficult. 55 00:03:03,140 --> 00:03:08,540 In addition, a lot of manufacturers still offer their demo boards for free or for very little. 56 00:03:08,700 --> 00:03:10,460 Because they want you to use their product. 57 00:03:10,540 --> 00:03:16,900 And they think by offering this to you very conveniently that you are far more likely to go buy a lot of their product. 58 00:03:17,100 --> 00:03:17,460 Okay. 59 00:03:17,460 --> 00:03:18,460 So we're not going to. 60 00:03:18,560 --> 00:03:19,860 But they don't have to know that. 61 00:03:22,020 --> 00:03:25,180 Now you do have to know where to be able to get these things. 62 00:03:25,260 --> 00:03:27,120 If you're not going to be yanking them from your boards. 63 00:03:27,460 --> 00:03:30,940 Then you're going to have to find vendors and manufacturers. 64 00:03:31,380 --> 00:03:33,780 You can go directly to the person who makes the chip. 65 00:03:33,860 --> 00:03:35,800 You can go to Intel if you want an i960. 66 00:03:35,860 --> 00:03:37,240 Or Motorola for a power PC. 67 00:03:37,640 --> 00:03:39,920 But the chances are they're not going to give you anything. 68 00:03:40,160 --> 00:03:42,420 Because they don't care about the individual person. 69 00:03:42,840 --> 00:03:44,440 You're going to have to find vendors. 70 00:03:44,680 --> 00:03:45,680 Now the good news is. 71 00:03:45,820 --> 00:03:47,280 If you go on to a. 72 00:03:47,280 --> 00:03:48,420 A company's website. 73 00:03:48,560 --> 00:03:49,640 They're going to list the vendors. 74 00:03:49,760 --> 00:03:51,000 You give one of them a call up. 75 00:03:51,040 --> 00:03:53,200 And most of them will end up sending you some sample chips. 76 00:03:53,740 --> 00:03:55,600 One or two of the cheap stuff. 77 00:03:55,820 --> 00:03:57,200 Of more expensive stuff. 78 00:03:57,300 --> 00:03:59,960 Maybe 10, 12 cheaper stuff. 79 00:04:00,280 --> 00:04:03,020 I've sometimes gotten EPROMs this way. 80 00:04:03,260 --> 00:04:04,280 Call up enough vendors. 81 00:04:04,420 --> 00:04:06,080 You can get a couple hundred if you need them. 82 00:04:08,540 --> 00:04:10,920 Now there's plenty of uses for embedded systems. 83 00:04:11,480 --> 00:04:13,460 One is just be a sniffer. 84 00:04:13,560 --> 00:04:15,160 You can monitor and record traffic. 85 00:04:15,380 --> 00:04:16,980 Or any specific traffic. 86 00:04:16,980 --> 00:04:17,640 If you want. 87 00:04:18,320 --> 00:04:19,660 One problem with this. 88 00:04:19,820 --> 00:04:21,040 With embedded systems. 89 00:04:21,160 --> 00:04:23,000 Over a standard computer on this. 90 00:04:23,100 --> 00:04:24,160 Would be storage. 91 00:04:24,740 --> 00:04:26,440 Because you may not be able to come in. 92 00:04:26,580 --> 00:04:28,260 And be able to yank your floppy. 93 00:04:28,360 --> 00:04:29,760 Or a flash card. 94 00:04:29,920 --> 00:04:31,540 Or whatever you're going to be using regularly. 95 00:04:31,800 --> 00:04:33,760 And you don't want to make this a huge box. 96 00:04:35,260 --> 00:04:37,980 Another use for embedded systems. 97 00:04:38,200 --> 00:04:39,300 Would be denial of service. 98 00:04:39,480 --> 00:04:40,900 You can actually build a box. 99 00:04:41,040 --> 00:04:43,360 Who will sit on the network for a day. 100 00:04:43,400 --> 00:04:44,220 Collecting MAC addresses. 101 00:04:44,340 --> 00:04:45,060 And IP addresses. 102 00:04:45,340 --> 00:04:46,960 And then suddenly start sending you a message. 103 00:04:46,960 --> 00:04:47,600 Spreading out. 104 00:04:47,860 --> 00:04:48,680 Garbage packets. 105 00:04:48,880 --> 00:04:49,440 Large packets. 106 00:04:49,600 --> 00:04:50,180 Something else. 107 00:04:50,320 --> 00:04:51,720 With a completely spoofed IP. 108 00:04:52,000 --> 00:04:53,160 And a spoofed MAC address. 109 00:04:53,380 --> 00:04:55,320 So that nobody knows where it's coming from. 110 00:04:55,620 --> 00:04:57,780 And there's no real way to trace it back. 111 00:04:57,880 --> 00:04:58,460 Because ideally. 112 00:04:58,580 --> 00:04:59,860 With a little bit of social engineering. 113 00:05:00,080 --> 00:05:01,920 You've plugged it directly into somebody's network. 114 00:05:03,220 --> 00:05:05,380 You can use this also to filter. 115 00:05:05,400 --> 00:05:06,800 Or block certain messages. 116 00:05:07,060 --> 00:05:09,120 If you want to screw people up badly. 117 00:05:09,400 --> 00:05:12,080 You can block everything from www.microsoft. 118 00:05:12,440 --> 00:05:13,700 Or whatever you want. 119 00:05:13,800 --> 00:05:15,340 Just stick a little box in. 120 00:05:15,500 --> 00:05:15,720 And. 121 00:05:16,360 --> 00:05:16,840 Just. 122 00:05:16,960 --> 00:05:18,600 Have all these things go into a black hole. 123 00:05:19,940 --> 00:05:20,340 So. 124 00:05:20,680 --> 00:05:22,260 There's plenty of uses for this. 125 00:05:22,360 --> 00:05:23,900 One guy I was talking to yesterday. 126 00:05:23,980 --> 00:05:26,760 Is actually building a little keystroke recorder. 127 00:05:27,020 --> 00:05:29,400 That he wants to ideally fit into his. 128 00:05:29,720 --> 00:05:30,520 Into a keyboard. 129 00:05:30,720 --> 00:05:31,600 So it will just sit there. 130 00:05:31,680 --> 00:05:33,560 And record every keystroke type in the keyboard. 131 00:05:33,980 --> 00:05:34,560 Once again. 132 00:05:34,680 --> 00:05:36,020 This is quite convenient. 133 00:05:36,240 --> 00:05:38,320 And something that embedded systems is ideal for. 134 00:05:39,860 --> 00:05:41,980 Now there's going to be some fundamental skills. 135 00:05:42,200 --> 00:05:43,780 If you're going to try and do embedded systems. 136 00:05:44,360 --> 00:05:45,980 You're going to need to be able to program. 137 00:05:46,380 --> 00:05:46,940 You need to be able to program. 138 00:05:46,940 --> 00:05:47,380 So. 139 00:05:47,400 --> 00:05:49,020 You also probably need C. 140 00:05:49,220 --> 00:05:50,880 Some people can do embedded systems. 141 00:05:50,900 --> 00:05:52,020 Completely in assembly. 142 00:05:52,240 --> 00:05:53,860 But this is fairly rare nowadays. 143 00:05:54,080 --> 00:05:55,320 Most everyone uses C. 144 00:05:55,420 --> 00:05:57,280 Once you get off the initial driver level. 145 00:05:57,920 --> 00:05:58,400 So. 146 00:05:58,560 --> 00:06:00,060 If you want to try and do this. 147 00:06:00,180 --> 00:06:01,300 Know some assembly. 148 00:06:01,440 --> 00:06:02,200 Know some C. 149 00:06:03,140 --> 00:06:04,580 Those are the two main languages. 150 00:06:04,920 --> 00:06:06,240 If you know Java. 151 00:06:06,360 --> 00:06:06,640 Wonderful. 152 00:06:06,880 --> 00:06:07,360 Go away. 153 00:06:10,440 --> 00:06:12,520 You're also going to need some hardware knowledge. 154 00:06:12,860 --> 00:06:15,400 You need to know which end of the soldering iron is hot. 155 00:06:15,640 --> 00:06:16,120 And. 156 00:06:16,120 --> 00:06:16,460 You're also going to need some hardware knowledge. 157 00:06:16,460 --> 00:06:16,540 You need to know. 158 00:06:16,540 --> 00:06:16,760 And. 159 00:06:18,040 --> 00:06:22,780 Ideally, you need to know a little bit about how to wire a breadboard, what a breadboard is, 160 00:06:23,360 --> 00:06:28,080 how to actually solder on chips, what a capacitor is. 161 00:06:28,200 --> 00:06:31,060 So basic, simple parts about hardware. 162 00:06:32,100 --> 00:06:37,300 You're going to need to know how to get information on the chips you want and how to get samples. 163 00:06:37,720 --> 00:06:43,480 Again, most of the time you can go straight to the manufacturer's website and get information. 164 00:06:43,640 --> 00:06:45,400 They'll have the entire specs there. 165 00:06:45,400 --> 00:06:46,540 I downloaded a bunch. 166 00:06:47,480 --> 00:06:49,960 They'll tell you how to get examples of sample code. 167 00:06:50,200 --> 00:06:51,400 They'll tell you distributors. 168 00:06:51,420 --> 00:06:52,820 You can find out how to get everything. 169 00:06:53,240 --> 00:06:55,740 Another good source is the Embedded Systems Journal. 170 00:06:56,140 --> 00:07:00,020 That thing, if you go back the last 20 pages, it's basically all advertisements, 171 00:07:00,280 --> 00:07:05,660 how to get yourself chips, demo boards, anything you really want that makes it easy for embedded systems. 172 00:07:07,840 --> 00:07:08,660 There we go. 173 00:07:08,720 --> 00:07:11,440 That's the basic overview of what the heck an embedded system is 174 00:07:11,440 --> 00:07:14,420 and why you would actually want to do anything with it. 175 00:07:14,420 --> 00:07:19,240 Let's get down to actually some details because we really want to know how to actually do this. 176 00:07:19,560 --> 00:07:21,320 So let's start off with some processors. 177 00:07:21,480 --> 00:07:26,420 You can start off with, I've got listed here first the main risk processors. 178 00:07:26,880 --> 00:07:28,500 There's the Intel i960. 179 00:07:28,640 --> 00:07:30,360 Now, I personally don't like this. 180 00:07:30,460 --> 00:07:33,220 I'm actually programming on it currently and I don't like the chip. 181 00:07:34,060 --> 00:07:38,320 Part of the problem is with all Intel chips, you have a big-endian, little-endian issue. 182 00:07:38,700 --> 00:07:44,220 Now, if you actually want your numbers to look like the numbers you intend them to be, this is not the chip for you. 183 00:07:45,540 --> 00:07:51,320 An additional problem with the i960 is it's expensive and there's nothing built into it. 184 00:07:51,340 --> 00:07:57,900 It's just a microprocessor, which means if you want to have serial ports or anything else, nothing's built into it. 185 00:07:57,900 --> 00:08:00,140 You have to buy it all externally and hook it all in. 186 00:08:00,400 --> 00:08:02,240 I don't like the i960. 187 00:08:02,400 --> 00:08:04,620 However, everybody uses it. 188 00:08:04,680 --> 00:08:06,240 There's compilers for it everywhere. 189 00:08:06,480 --> 00:08:09,280 You can find and can use the same compiler that'll do i960. 190 00:08:09,460 --> 00:08:10,200 It's convenient. 191 00:08:10,660 --> 00:08:13,040 Everyone knows how to do something with it generally. 192 00:08:13,300 --> 00:08:14,120 There's a good... 193 00:08:14,680 --> 00:08:15,900 There's a good knowledge base behind it. 194 00:08:15,980 --> 00:08:17,880 There's one benefit with the i960. 195 00:08:19,560 --> 00:08:23,800 But then we can go down to the Motorola PowerPC, and this is actually better. 196 00:08:23,960 --> 00:08:29,260 There's almost as much of a common base for it, almost as many people use the PowerPC as the i960. 197 00:08:29,520 --> 00:08:35,020 But unlike the i960, it actually does not have the big-endian, little-endian issue. 198 00:08:35,180 --> 00:08:36,740 Your numbers come out nice and normal. 199 00:08:36,960 --> 00:08:43,180 They have built-in SCCs, which are serial ports, so that you can actually hook up other pieces of equipment to this 200 00:08:43,180 --> 00:08:45,900 without having to do too much terrible engineering. 201 00:08:47,640 --> 00:08:49,820 It's got DRAM controllers built in. 202 00:08:49,960 --> 00:08:51,440 It's cheaper than the Intel. 203 00:08:51,800 --> 00:08:54,300 And again, you can usually find compilers everywhere. 204 00:08:54,560 --> 00:08:58,300 In fact, I use a GNU C compiler when I'm doing PowerPC compiles. 205 00:08:58,660 --> 00:09:04,440 So if you want to go with a RISC chip, my personal preference would be the Motorola PowerPC. 206 00:09:04,820 --> 00:09:08,420 Another common RISC chip is the MIPS. 207 00:09:08,760 --> 00:09:11,920 But not many people use the MIPS. 208 00:09:11,920 --> 00:09:14,380 It's got some built-ins to it. 209 00:09:15,240 --> 00:09:17,240 The big problem with it is it's not very common. 210 00:09:17,380 --> 00:09:18,600 It's not very sexy. 211 00:09:19,860 --> 00:09:24,700 Of course, because of that, you're actually going to be able to get lots of samples of them, 212 00:09:24,740 --> 00:09:27,560 because the company is desperate to pawn them off on anybody. 213 00:09:28,400 --> 00:09:30,280 So this is one benefit with MIPS. 214 00:09:31,000 --> 00:09:34,360 The MIPS is similar in construction to the PowerPC. 215 00:09:34,600 --> 00:09:36,040 It's got built-in DRAM controllers. 216 00:09:36,300 --> 00:09:37,580 It's got built-in SCCs. 217 00:09:38,000 --> 00:09:41,100 It does not have the big-endian, little-endian issue. 218 00:09:41,920 --> 00:09:46,660 So if you're looking for just dirt cheap, the MIPS is probably where you want to go. 219 00:09:47,240 --> 00:09:50,460 You can also then bow down to some of the lower-level processors. 220 00:09:50,600 --> 00:09:55,560 There's the Intel 8051, which you can probably pick up for about, 221 00:09:55,740 --> 00:09:59,640 depending on the speed of the processor, from anywhere from $1 to $10 a processor. 222 00:10:00,060 --> 00:10:02,760 So it's very, very cheap, even if you're not getting samples. 223 00:10:03,160 --> 00:10:06,100 The one problem is it doesn't have an awful lot of horsepower. 224 00:10:06,360 --> 00:10:08,000 We're talking this is an 8-bit processor. 225 00:10:09,060 --> 00:10:11,060 You can do some incredible things with it, 226 00:10:11,060 --> 00:10:12,980 but you're probably going to have to write an assembly, 227 00:10:13,240 --> 00:10:16,080 and you're going to have to write some really clever and some really tight code. 228 00:10:16,560 --> 00:10:21,540 I've got friends that have implemented full 56k modems using an 8051, 229 00:10:21,820 --> 00:10:24,900 and that took a year and a half of engineering to end. 230 00:10:25,000 --> 00:10:29,860 They were constantly having to tweak the code to keep the 8051 powerful enough to do this. 231 00:10:31,520 --> 00:10:33,540 I mentioned earlier a 386. 232 00:10:33,840 --> 00:10:37,440 You can yank a 386 off of one of your motherboards and use that, 233 00:10:37,500 --> 00:10:39,380 and you'll probably have enough power for what you want. 234 00:10:40,140 --> 00:10:43,280 Some companies actually make what they call a PC-on-a-chip, 235 00:10:43,440 --> 00:10:48,380 and it's basically a 386 or a 486 on a small board, 236 00:10:48,480 --> 00:10:52,040 usually with bits and serials and an Ethernet port. 237 00:10:52,480 --> 00:10:55,460 You can go ahead and do that, but let's admit it. 238 00:10:55,480 --> 00:10:58,020 I happen to think if you're going to use a PC chip, you're cheating. 239 00:10:59,400 --> 00:11:00,720 We're talking embedded systems. 240 00:11:00,880 --> 00:11:02,940 We're not trying to make this easy, okay? 241 00:11:05,400 --> 00:11:07,460 So this basically covers processors. 242 00:11:08,400 --> 00:11:09,360 Everyone's probably got a little bit of experience. 243 00:11:09,380 --> 00:11:10,780 They've got a different process that they know of. 244 00:11:10,820 --> 00:11:12,960 They've got different flavors that everyone likes. 245 00:11:13,780 --> 00:11:15,120 Some people like the Pico. 246 00:11:16,760 --> 00:11:19,800 Once again, use what you like. 247 00:11:20,000 --> 00:11:21,520 There's plenty of them out there. 248 00:11:21,920 --> 00:11:23,680 I'm just covering some of the basics. 249 00:11:24,760 --> 00:11:29,600 When you come to I.O. devices, then you've got your basic Ethernet. 250 00:11:29,600 --> 00:11:30,500 You've got a T1. 251 00:11:30,940 --> 00:11:34,860 You even have wireless or ADSL if you want to get really exotic. 252 00:11:36,560 --> 00:11:37,860 If you're going Ethernet, 253 00:11:37,860 --> 00:11:40,760 there's a lot of different Ethernet controllers out there. 254 00:11:41,300 --> 00:11:45,000 My first preference is probably the Davicon chip because it's cheap. 255 00:11:45,580 --> 00:11:46,860 Cheap is always a good thing. 256 00:11:46,980 --> 00:11:50,400 You can always just yank off a familiar Ethernet card that you don't like anymore. 257 00:11:50,660 --> 00:11:54,420 No one's using your old 16-bit ISA, but that doesn't mean the chip is bad. 258 00:11:55,100 --> 00:11:58,480 Depending on how old the card is, though, the chip may not want to be made, 259 00:11:58,580 --> 00:12:01,720 in which case you're going to have some difficulties actually getting some specs on it. 260 00:12:01,800 --> 00:12:06,620 So that's the one thing to keep or be aware of if you're actually going to recover from old hardware. 261 00:12:08,520 --> 00:12:10,880 Just about everybody makes an Ethernet controller. 262 00:12:11,040 --> 00:12:11,780 This makes it easy. 263 00:12:11,880 --> 00:12:13,500 I went on the web and did a basic search. 264 00:12:13,760 --> 00:12:14,700 There's the Davicon. 265 00:12:15,060 --> 00:12:16,060 AMD makes one. 266 00:12:16,160 --> 00:12:16,940 Cirrus Logic. 267 00:12:17,080 --> 00:12:18,540 National Semiconductor. 268 00:12:18,660 --> 00:12:24,380 You name the manufacturer of ICs, and they're probably going to make an Ethernet controller. 269 00:12:24,720 --> 00:12:27,080 You can get 10-megabit controllers. 270 00:12:27,180 --> 00:12:28,160 You can get 100-megabit. 271 00:12:28,220 --> 00:12:30,120 You can get ones that'll switch from either way. 272 00:12:30,720 --> 00:12:35,100 Personally, you're probably going to stick with a 10-megabit, mostly because of price, 273 00:12:35,740 --> 00:12:37,840 mostly because you have no need to go get a 10-megabit. 274 00:12:37,840 --> 00:12:42,780 You can go to a 100-megabit Ethernet for whatever situation you're going to be using for it. 275 00:12:43,560 --> 00:12:49,080 T1 controllers are a little bit more tricky because some T1 controllers you have to get two chips for, 276 00:12:49,740 --> 00:12:55,400 specifically a line interface chip, which is what actually connects up to the line and talks to it, 277 00:12:55,440 --> 00:12:59,500 and then you have a framing chip, which actually packetizes everything and sends it out. 278 00:12:59,780 --> 00:13:04,420 So if you're going to be looking into doing something with T1 or even E1 applications, 279 00:13:04,660 --> 00:13:06,600 you're going to want to check to see if you're using them. 280 00:13:06,600 --> 00:13:10,640 If you're going to be doing a single chip or a multiple chip solution, 281 00:13:11,140 --> 00:13:12,640 I'd recommend a single chip. 282 00:13:12,700 --> 00:13:15,160 They tend to be cheaper than buying two separate chips. 283 00:13:15,260 --> 00:13:19,580 Plus, let's admit it, it's easier if you've only got one chip to wire in than to do two chips. 284 00:13:20,780 --> 00:13:24,340 One of the more popular single chip solutions would be the Siemens. 285 00:13:24,540 --> 00:13:29,960 Well, it's now Utheon because Siemens split off their embedded systems group. 286 00:13:30,260 --> 00:13:32,580 They make a very good T1 chip. 287 00:13:34,360 --> 00:13:37,280 Cirrus Logic, on the other hand, is a two-chip solution, 288 00:13:37,560 --> 00:13:40,020 which actually isn't bad if you want to go with a two-chip solution. 289 00:13:44,220 --> 00:13:46,460 There's plenty of people out there who will do wireless. 290 00:13:49,340 --> 00:13:51,480 Cirrus Logic, actually, is another one who does it. 291 00:13:51,520 --> 00:13:58,720 Once again, you can also do DSL, Phillips, AMD, National Semiconductors. 292 00:13:58,720 --> 00:14:01,000 Everyone does DSL if you're interested in doing it. 293 00:14:01,200 --> 00:14:02,180 But in general, 294 00:14:02,580 --> 00:14:05,560 when we're going to be doing some sort of little embedded systems box, 295 00:14:05,680 --> 00:14:09,920 we're probably going to do some social engineering and plug it directly into somebody's network. 296 00:14:10,360 --> 00:14:14,880 So you're most likely going to be interested in either Ethernet or T1, to be quite honest. 297 00:14:16,440 --> 00:14:19,880 Or something that's completely standalone doesn't hook into any of that, 298 00:14:19,920 --> 00:14:22,700 in the case of, like, the keyboard monitor. 299 00:14:23,380 --> 00:14:25,920 It doesn't actually need to know anything about T1s. 300 00:14:25,920 --> 00:14:27,540 It doesn't need to know anything about Ethernet. 301 00:14:27,640 --> 00:14:29,340 It just needs to be able to hook into the keyboard. 302 00:14:29,540 --> 00:14:30,600 So that's actually convenient. 303 00:14:30,600 --> 00:14:35,160 It depends on what you're looking to do with your embedded program. 304 00:14:36,960 --> 00:14:38,940 Now, when I'm talking about these things, 305 00:14:39,020 --> 00:14:42,520 especially if we're talking about building some sort of a sniffer or a recording device, 306 00:14:42,800 --> 00:14:44,940 we've got a big memory problem, 307 00:14:45,080 --> 00:14:48,760 because we're talking hundreds of thousands of packets going through 308 00:14:48,760 --> 00:14:50,480 that we're going to suddenly have to record. 309 00:14:50,880 --> 00:14:54,060 And this is one of the big problems we've got with embedded systems, 310 00:14:54,240 --> 00:14:56,880 is trying to get enough memory at a reasonable price 311 00:14:56,880 --> 00:14:58,840 that still makes your product small enough. 312 00:14:59,000 --> 00:15:00,380 You can go out and get a hard drive, 313 00:15:00,380 --> 00:15:01,340 and wire it on in. 314 00:15:01,520 --> 00:15:04,000 But when you're talking you've got extra size, 315 00:15:04,120 --> 00:15:06,040 you've got a larger power requirement, 316 00:15:07,220 --> 00:15:09,300 it's not really terribly convenient. 317 00:15:09,660 --> 00:15:15,180 So what you're looking to do is you want to save to memory. 318 00:15:15,360 --> 00:15:17,860 What's the best, most practical way of doing it? 319 00:15:17,940 --> 00:15:21,100 You've got everything basically from a little flash chip, 320 00:15:21,280 --> 00:15:23,200 where you can actually go write it onto a chip. 321 00:15:23,400 --> 00:15:25,960 And then they're fairly small. 322 00:15:26,040 --> 00:15:30,060 They're, I don't know, maybe about an inch long or so. 323 00:15:30,060 --> 00:15:30,960 An average. 324 00:15:31,140 --> 00:15:33,880 So you can get some nice small chips to write it in. 325 00:15:34,280 --> 00:15:36,560 The only problem is when they're full up, 326 00:15:36,660 --> 00:15:39,180 the only thing you can do is either yank the chips 327 00:15:39,180 --> 00:15:42,080 or yank the board and put in a new board. 328 00:15:42,820 --> 00:15:45,220 And you could stick a floppy in, 329 00:15:45,280 --> 00:15:47,640 but you've got the same problem as with a hard drive. 330 00:15:47,760 --> 00:15:49,460 Once again, you've got more power requirements, 331 00:15:49,620 --> 00:15:51,360 you've got size, 332 00:15:51,880 --> 00:15:55,220 and you've still got to be able to go move the floppies in and out. 333 00:15:55,400 --> 00:15:58,480 My personal preference is probably a flash card 334 00:15:58,480 --> 00:16:00,940 or a PCMCIA card. 335 00:16:01,140 --> 00:16:04,780 You can get anything from about a 2 meg to about a 32 meg flash card. 336 00:16:06,280 --> 00:16:08,000 Fits, you can hot swap them. 337 00:16:08,260 --> 00:16:10,340 And it's fairly small, 338 00:16:10,520 --> 00:16:13,080 so you're not talking about a lot of hardware to support it. 339 00:16:14,520 --> 00:16:18,020 And it gives you the ability to just yank it out, 340 00:16:18,120 --> 00:16:19,420 slap a new one in. 341 00:16:19,620 --> 00:16:21,160 It takes very little amount of time. 342 00:16:21,220 --> 00:16:23,160 Then you can go home, stick it in your laptop, 343 00:16:23,280 --> 00:16:25,460 and read what's actually been recorded on it. 344 00:16:26,800 --> 00:16:28,460 There's another way to avoid recording. 345 00:16:28,480 --> 00:16:30,560 And that is if you're hooked up to the network, 346 00:16:30,720 --> 00:16:32,500 you can just transmit to yourself. 347 00:16:32,800 --> 00:16:34,940 Have it hard coded to send all the data, 348 00:16:35,120 --> 00:16:39,260 or record for an hour and send all the data to a certain IP address. 349 00:16:39,600 --> 00:16:41,520 Do it over TFTP perhaps. 350 00:16:42,120 --> 00:16:45,380 So this is always a way to avoid all the memory solutions too. 351 00:16:45,560 --> 00:16:47,680 But remember, if you're going to be sending over the network, 352 00:16:47,760 --> 00:16:50,220 somebody may start wondering how come their mail server 353 00:16:50,220 --> 00:16:54,860 keeps sending 2 gigs of data every day to some strange IP address. 354 00:16:55,320 --> 00:16:58,460 So try and be a little sensible about it. 355 00:16:58,480 --> 00:17:02,500 In addition, if you're going to be building up a nice little embedded box, 356 00:17:02,620 --> 00:17:04,300 you're going to have to throw some RAM in it. 357 00:17:04,460 --> 00:17:06,260 Now the good news is that RAM is cheap. 358 00:17:06,940 --> 00:17:08,040 So what you want to do, 359 00:17:08,180 --> 00:17:11,920 it depends on how good of a coder you are when it comes down to it. 360 00:17:11,960 --> 00:17:13,340 How tight are you writing the code? 361 00:17:13,500 --> 00:17:15,140 How fast are you doing it? 362 00:17:15,220 --> 00:17:18,620 And how much memory do you actually need to process what you're doing? 363 00:17:20,240 --> 00:17:22,140 Depending on what you're doing. 364 00:17:22,840 --> 00:17:27,720 I'd say anywhere from about 128K for something small, 365 00:17:27,720 --> 00:17:30,060 which doesn't actually do an awful lot, 366 00:17:30,160 --> 00:17:31,600 up to several megs. 367 00:17:31,600 --> 00:17:35,300 The product I currently work on uses actually 64 megs of RAM. 368 00:17:35,840 --> 00:17:37,940 And that's just for the main controller. 369 00:17:38,160 --> 00:17:39,660 We're not talking the subcards. 370 00:17:40,280 --> 00:17:42,920 Okay, we're a little bit obscene, 371 00:17:42,940 --> 00:17:46,280 but I don't expect most of you to have to deal with that. 372 00:17:46,920 --> 00:17:47,780 You've got a question? 373 00:17:59,120 --> 00:18:01,100 For OS, you've got a choice. 374 00:18:01,200 --> 00:18:03,260 If it's going to be something very simple that you're doing, 375 00:18:03,300 --> 00:18:05,520 you can probably write something from the ground up. 376 00:18:05,680 --> 00:18:10,580 There are several companies that provide OSes designed specifically for embedded systems. 377 00:18:11,540 --> 00:18:12,720 SourceCom does one. 378 00:18:13,360 --> 00:18:15,480 Nucleus actually makes a very good OS. 379 00:18:15,820 --> 00:18:17,700 If you take a look more on the free side, 380 00:18:17,900 --> 00:18:21,000 Linux even comes with an embedded version that you can use. 381 00:18:21,160 --> 00:18:24,040 And what's nice about Linux is it's cheap, 382 00:18:24,100 --> 00:18:27,360 and it's probably got drivers for just about any chip out there 383 00:18:27,720 --> 00:18:28,740 that you want to actually use. 384 00:18:29,640 --> 00:18:30,980 Depending on what you're doing, 385 00:18:31,500 --> 00:18:33,340 you may want to decide on scaling. 386 00:18:36,400 --> 00:18:37,660 We wrote our own. 387 00:18:39,440 --> 00:18:42,820 He wanted to know which operating system that I currently use. 388 00:18:43,300 --> 00:18:45,500 The company I work for, we wrote our own. 389 00:18:46,400 --> 00:18:48,400 The previous companies I've worked for, 390 00:18:48,520 --> 00:18:50,220 we tended to buy from Nucleus. 391 00:18:50,280 --> 00:18:54,200 Nucleus makes one of the best operating system kernels around that I've seen. 392 00:18:54,720 --> 00:18:56,500 It's fairly unique. 393 00:18:57,720 --> 00:18:57,840 It's similar, 394 00:18:58,060 --> 00:19:00,940 but it's designed specifically for embedded environments. 395 00:19:01,420 --> 00:19:02,320 And it's clean. 396 00:19:02,480 --> 00:19:02,960 It's nice. 397 00:19:03,020 --> 00:19:04,340 It has great debugging features. 398 00:19:05,220 --> 00:19:07,580 And that's another thing you guys need to keep well. 399 00:19:07,740 --> 00:19:09,480 You're going to have to debug this thing. 400 00:19:09,640 --> 00:19:11,440 If you imagine you're going to slap it all together 401 00:19:11,440 --> 00:19:13,080 and have it work first time through, 402 00:19:13,320 --> 00:19:14,920 then you guys must be geniuses, 403 00:19:14,920 --> 00:19:16,820 and I want you to come on up here and give the speech, 404 00:19:16,940 --> 00:19:18,800 because obviously you're better than I am. 405 00:19:19,180 --> 00:19:23,000 I can't even write code that compiles cleanly the first time, usually. 406 00:19:23,560 --> 00:19:26,380 So imagine that I could slap together some sort of a box 407 00:19:26,380 --> 00:19:28,860 to do whatever I want, 408 00:19:28,960 --> 00:19:31,460 and have all the code and all the hardware work immediately. 409 00:19:31,860 --> 00:19:32,960 It's fairly unlikely. 410 00:19:33,400 --> 00:19:38,120 In fact, if you even take a look at the first production boards of most companies, 411 00:19:38,160 --> 00:19:41,700 you'll find that someone's been slapping on little wires here and there 412 00:19:41,700 --> 00:19:44,980 to make up for the accidents they discovered after they built the first batch. 413 00:19:45,640 --> 00:19:46,120 Yes? 414 00:19:47,040 --> 00:19:47,520 . 415 00:19:50,460 --> 00:19:50,820 . 416 00:19:58,120 --> 00:19:58,640 You're right. 417 00:19:58,700 --> 00:20:02,040 Buying the little PC boards is the most practical way, 418 00:20:02,080 --> 00:20:04,680 because you don't have to worry about having hard work to use, 419 00:20:04,860 --> 00:20:06,420 and it gives you an easy development board. 420 00:20:07,280 --> 00:20:09,720 I suppose the reason I call it cheating is because, 421 00:20:10,740 --> 00:20:13,040 well, it seems a little easy, to be honest. 422 00:20:13,100 --> 00:20:15,360 I'm used to having to work with built-in microprocessors 423 00:20:15,360 --> 00:20:16,240 and having to do, 424 00:20:16,240 --> 00:20:18,640 really engineer things from the ground up. 425 00:20:18,700 --> 00:20:20,560 The PC boards are great, actually, 426 00:20:20,620 --> 00:20:23,760 for the little home embedded systems programmer, 427 00:20:23,860 --> 00:20:25,840 because it's all there together, 428 00:20:26,020 --> 00:20:28,440 it's very easy to put software together on it, 429 00:20:28,480 --> 00:20:30,180 and it's really the simplest solution. 430 00:20:32,100 --> 00:20:34,180 So, it's not really cheating, 431 00:20:34,380 --> 00:20:39,300 I just, I find it a little too easy to qualify as true embedded systems. 432 00:20:40,560 --> 00:20:41,040 . 433 00:20:43,840 --> 00:20:45,280 Let's see, what have I got left? 434 00:20:46,100 --> 00:20:48,480 I've covered most of the basics I wanted to do, 435 00:20:48,520 --> 00:20:49,940 because I wanted to keep this kind of short, 436 00:20:49,980 --> 00:20:51,140 so I could start answering questions. 437 00:20:51,320 --> 00:20:53,600 I don't know how many of you have actually built something, 438 00:20:53,720 --> 00:20:54,980 or want to build something, 439 00:20:56,060 --> 00:20:59,260 or are wondering why the heck they're actually sitting here still. 440 00:21:00,680 --> 00:21:02,380 Does anybody really have any questions? 441 00:21:04,860 --> 00:21:06,000 Okay, you, black shirt? 442 00:21:09,140 --> 00:21:09,580 . 443 00:21:10,600 --> 00:21:11,040 . 444 00:21:14,680 --> 00:21:15,120 . 445 00:21:16,520 --> 00:21:17,080 . 446 00:21:17,080 --> 00:21:17,660 You can do that, 447 00:21:17,720 --> 00:21:21,160 and there are actually some people that have built such. 448 00:21:21,480 --> 00:21:24,660 Ethernet and phone lines, in particular. 449 00:21:24,980 --> 00:21:30,000 Both of which provide more power than you actually need for the protocol. 450 00:21:30,280 --> 00:21:30,840 . 451 00:21:31,480 --> 00:21:33,120 You can help be careful, though. 452 00:21:33,160 --> 00:21:37,060 Most of them, you build to do, to power off them, 453 00:21:37,240 --> 00:21:39,880 but there's enough of a variance 454 00:21:39,880 --> 00:21:44,340 in the actual real-life use that sometimes it won't work. 455 00:21:44,460 --> 00:21:44,920 . 456 00:21:45,700 --> 00:21:52,140 One company I worked for built a little modem that was powered off of a phone line, and it worked on about 70% of the phone lines. 457 00:21:52,160 --> 00:21:57,780 The rest of them were bouncing around enough on the power selection so that you actually had to plug in a 9-volt battery. 458 00:21:59,120 --> 00:22:04,200 So just remember you're working in the real world, and not everyone's going to actually follow the spec. 459 00:22:09,120 --> 00:22:11,220 How long have I been doing embedded systems? 460 00:22:11,460 --> 00:22:13,360 I've been doing it for about six and a half years. 461 00:22:13,360 --> 00:22:15,140 I started off in the modem industry. 462 00:22:15,460 --> 00:22:17,980 I'm now in the telecommunications industry. 463 00:22:18,700 --> 00:22:22,740 I specialize mostly in protocols, currently in frame rate variations. 464 00:22:25,880 --> 00:22:28,520 Oh boy, everyone over here seems to like me. 465 00:22:29,420 --> 00:22:33,100 Let's just start with you in the back, with the big beard. 466 00:22:47,920 --> 00:22:49,220 Ah, one-tip solutions. 467 00:22:50,380 --> 00:22:51,900 There are some of them out there. 468 00:22:51,980 --> 00:22:54,560 The ones that I have played with, I have hated. 469 00:22:55,200 --> 00:22:57,700 I find them generally pretty flaky. 470 00:22:59,140 --> 00:23:07,720 They always decide to do strange things and give out on you at the last moment, usually in this critical moment. 471 00:23:07,860 --> 00:23:13,040 They've gotten better, and I haven't played with them in a couple of years now, and I've been told they've gotten better. 472 00:23:13,360 --> 00:23:15,180 But I've been really pretty unimpressed. 473 00:23:15,200 --> 00:23:19,120 Everyone who tries to slam everything onto one chip tends to leave things out. 474 00:23:21,760 --> 00:23:22,280 Next. 475 00:23:24,360 --> 00:23:26,280 This side's obviously pretty quiet. 476 00:23:27,480 --> 00:23:28,140 Do we? 477 00:23:28,220 --> 00:23:29,320 I missed you. 478 00:23:29,420 --> 00:23:30,240 Okay, we'll give you. 479 00:23:30,540 --> 00:23:33,280 Here we go. 480 00:23:39,900 --> 00:23:42,920 We're doing some sort of a solution where everything's added on. 481 00:23:42,920 --> 00:23:45,920 This is actually pretty good. 482 00:23:46,060 --> 00:23:48,400 You can do an awful lot of things with serials. 483 00:23:49,580 --> 00:23:54,420 You can, everything from HDLC to just slapping on another chip. 484 00:23:55,060 --> 00:23:56,260 It's very convenient. 485 00:23:56,460 --> 00:23:57,400 It's very quick. 486 00:23:57,580 --> 00:24:02,960 If you're going to do that, you want to make sure that whatever your microprocessor is, it has a lot of SCCs to handle it. 487 00:24:03,600 --> 00:24:07,120 Motorola tends to slap about four of them on a chip. 488 00:24:07,440 --> 00:24:09,400 MIPS tends to put about two on. 489 00:24:09,520 --> 00:24:11,400 You don't want to use an Intel i9-60. 490 00:24:11,500 --> 00:24:12,740 They don't put SCC. 491 00:24:12,920 --> 00:24:13,720 It's on their chips. 492 00:24:14,040 --> 00:24:18,640 Each SCC port is going to do some sort of a serial interface for you. 493 00:24:18,760 --> 00:24:23,660 If you need a lot of serial interfaces, what I've actually seen people do is they actually 494 00:24:23,660 --> 00:24:31,060 will slave a second Motorola PowerPC chip to the original one just so that they can 495 00:24:31,060 --> 00:24:32,120 use the SCC ports. 496 00:24:34,020 --> 00:24:34,580 Next. 497 00:24:56,400 --> 00:24:58,400 It depends on what you're doing. 498 00:24:58,680 --> 00:25:03,740 When I was doing modems, I was the sole programmer for the entire modem code base. 499 00:25:05,060 --> 00:25:06,680 I then branched out. 500 00:25:06,820 --> 00:25:11,680 I have worked on teams from anywhere from about two people to... 501 00:25:12,160 --> 00:25:15,340 The current team I'm on would be a little hard to describe. 502 00:25:15,560 --> 00:25:20,500 My current chunk of it, I'm the only one working on it, but we've got hundreds of programmers 503 00:25:20,500 --> 00:25:22,820 working in the code base constantly. 504 00:25:24,460 --> 00:25:27,740 For simple little things that you're doing, especially if you're going to use something 505 00:25:27,740 --> 00:25:31,620 along the lines of a PC on a chip or some sort of a demo board where you've already 506 00:25:31,620 --> 00:25:37,100 got some software built in, you can probably do it on your own in a couple months if you're 507 00:25:37,100 --> 00:25:40,840 a decent programmer and you know what you're doing and you can read a spec. 508 00:25:46,720 --> 00:25:52,140 Ideally, if you're not that good at hardware, and God knows the hardware guys don't like 509 00:25:52,140 --> 00:25:58,660 me in their lab, your best bet is to buy some sort of pre-made solution, which means 510 00:25:58,660 --> 00:26:00,720 either a PC on a chip or a demo board. 511 00:26:00,840 --> 00:26:07,660 There's hundreds of demo boards out there using various different chipsets with various 512 00:26:07,660 --> 00:26:08,120 interfaces. 513 00:26:08,360 --> 00:26:11,500 You can very commonly find for somewhere between... 514 00:26:11,920 --> 00:26:17,580 $20 and $70 a board with a microprocessor, an Ethernet chip, and a T1 chip on it. 515 00:26:17,680 --> 00:26:23,200 So you've already got just about everything you could need to hook into a network right there. 516 00:26:23,380 --> 00:26:25,260 They'll give you power supply information. 517 00:26:25,560 --> 00:26:29,440 Usually it's like a 9-volt transformer you can just plug into a wall. 518 00:26:29,540 --> 00:26:35,760 You can gen up something independent if you actually want, but you can actually get a 519 00:26:35,760 --> 00:26:38,820 nice little box that has everything in it, and all you've got to do is slack on some 520 00:26:38,820 --> 00:26:41,440 code and put something around it so it doesn't look like this. 521 00:26:41,680 --> 00:26:44,160 It's like a piece of circuit board flying around, which may actually make somebody 522 00:26:44,160 --> 00:26:44,600 suspicious. 523 00:26:48,740 --> 00:26:49,660 Okay, we'll go with you. 524 00:26:52,420 --> 00:26:52,820 . 525 00:27:01,680 --> 00:27:04,900 Most of them don't actually deal with the protocols at all. 526 00:27:05,160 --> 00:27:10,180 It's going to be able to read the line, but if you want to be able to read the TCP IP 527 00:27:10,180 --> 00:27:11,660 headers or anything like that, it's going to be able to do that. 528 00:27:11,660 --> 00:27:14,520 It's going to determine what's actually within the data packet. 529 00:27:14,680 --> 00:27:16,860 You're going to have to write that all into your own software. 530 00:27:20,340 --> 00:27:23,500 Right, that's where you really want to be able to do the controlling of it anyway. 531 00:27:23,700 --> 00:27:26,780 Most Ethernet chips are only going to do the basics. 532 00:27:26,900 --> 00:27:30,300 It's going to be reading the data and give it to you in a format that you can actually 533 00:27:30,300 --> 00:27:33,420 then read and process. 534 00:27:33,720 --> 00:27:37,360 You can actually buy Ethernet chips that'll do switching, but I don't see any of you really 535 00:27:37,360 --> 00:27:39,720 wanting to build a box that's just going to switch your Ethernet out. 536 00:27:41,340 --> 00:27:42,860 I suppose there's possibilities. 537 00:27:43,020 --> 00:27:46,500 You can get switched Ethernet chips. 538 00:27:46,580 --> 00:27:49,560 You can get ones that are just going to be able to input and output. 539 00:27:51,360 --> 00:27:51,820 . 540 00:27:59,040 --> 00:28:01,000 Single-chip Ethernet's a delaying game. 541 00:28:01,080 --> 00:28:02,720 You can find some, yeah. 542 00:28:02,920 --> 00:28:07,720 In fact, Ethernet, you're far more likely to find a single-chip solution than in T1 543 00:28:08,480 --> 00:28:08,940 specifically. 544 00:28:09,320 --> 00:28:09,700 So, I'm going to go ahead and do that. 545 00:28:09,720 --> 00:28:14,180 So, if you're going to be doing some sort of an Ethernet solution, if it's not being 546 00:28:14,180 --> 00:28:16,820 offered in a single-chip solution, don't go with the company. 547 00:28:21,560 --> 00:28:23,800 Okay, we'll go all the way over there, black shirt. 548 00:28:24,660 --> 00:28:25,180 Yes, you. 549 00:28:26,800 --> 00:28:27,200 . 550 00:28:37,200 --> 00:28:39,700 Okay, preferences for compiling Ethernet chips. 551 00:28:39,720 --> 00:28:42,120 So, we have a couple of compilers, and we're going to get un-chip samples. 552 00:28:43,220 --> 00:28:47,980 For compilers, the past couple companies I've worked at, we've actually used one flavor 553 00:28:47,980 --> 00:28:49,120 or another of Ganussi. 554 00:28:49,620 --> 00:28:50,820 It works well. 555 00:28:50,840 --> 00:28:52,140 You can customize it out. 556 00:28:52,920 --> 00:28:54,960 It's pretty nice, to be quite honest. 557 00:28:55,160 --> 00:28:59,180 And you can get them to run with just about any microprocessor that you want to use. 558 00:29:01,280 --> 00:29:05,040 If you're going to go away from Ganussi, you're probably going to have to pay some money for 559 00:29:05,040 --> 00:29:05,580 the compiler. 560 00:29:05,880 --> 00:29:09,700 So, I recommend, unless you really can't stand the compiler, you can get the compiler 561 00:29:09,700 --> 00:29:11,200 that's stick with the Ganussi. 562 00:29:11,460 --> 00:29:17,240 As for un-chip samples, I don't know off the top of my head where you can get them, but 563 00:29:17,240 --> 00:29:22,620 I would recommend, if you've got a specific vendor that you want to go through, you find 564 00:29:22,620 --> 00:29:25,940 out who one of their distributors are, and you start calling distributors. 565 00:29:26,040 --> 00:29:28,900 One of them, at least one of them, will give you samples. 566 00:29:29,000 --> 00:29:30,160 Maybe only a single one. 567 00:29:30,320 --> 00:29:34,780 But most people are so desperate to get your business that they will send you samples. 568 00:29:35,460 --> 00:29:35,900 . 569 00:29:37,180 --> 00:29:37,620 . 570 00:29:39,240 --> 00:29:39,680 . 571 00:33:39,700 --> 00:33:40,180 This would be great. 572 00:33:48,080 --> 00:33:51,620 I'm really excited about this, but not actually, as 573 00:33:51,620 --> 00:33:53,460 Alba, everyone else, but I think each gateway went through it, so you can kind of go a little 574 00:33:53,460 --> 00:33:53,880 bit further. 575 00:33:54,180 --> 00:34:01,720 Let's see, I don't know if I want to have the Fourth Einfach Sims here, but there's 576 00:34:01,720 --> 00:34:04,460 also a festival called Boabos Fin mostra. 577 00:34:04,620 --> 00:34:05,560 . 578 00:34:05,560 --> 00:34:06,480 There's a pharmaceutical review. 579 00:34:06,480 --> 00:34:07,780 . . . Inter circumstantial. . . . Okay, it's awesome. 580 00:34:07,780 --> 00:34:09,680 . . . It's awesome! 581 00:34:09,680 --> 00:34:12,740 will probably take care of 80% of all your problems. 582 00:34:12,860 --> 00:34:16,160 Eventually, you're going to have to run this on the actual hardware real-time. 583 00:34:16,600 --> 00:34:18,980 And the problem when you start doing this is 584 00:34:18,980 --> 00:34:21,780 you're limited in the amount of ways you're going to get information. 585 00:34:22,160 --> 00:34:25,300 If you've got access to it, you can throw on the logic analyzer 586 00:34:25,300 --> 00:34:30,040 and actually watch how various pins are being, and that is being twiddled. 587 00:34:30,160 --> 00:34:34,440 But this is kind of difficult, and let's admit it, logic analyzers are not cheap. 588 00:34:34,440 --> 00:34:41,420 Your best way, unfortunately, when you're actually running it on your box is like print apps. 589 00:34:42,000 --> 00:34:45,560 It's completely backwards, but the print app can be your best friend. 590 00:34:45,680 --> 00:34:49,500 I do a good chunk of debugging, actually, via simple printout statements. 591 00:34:53,300 --> 00:34:57,860 Assume every week of coding you do is going to take two weeks to debug it. 592 00:35:04,720 --> 00:35:05,720 Okay, we're in the back. 593 00:35:27,820 --> 00:35:28,640 Good point. 594 00:35:28,740 --> 00:35:32,140 He did mention that you can do some logic if you're cheap 595 00:35:32,140 --> 00:35:34,040 and you're not too worried about... 596 00:35:34,440 --> 00:35:37,880 At speed, you can throw on some sort of a logic analyzer card into your PC 597 00:35:37,880 --> 00:35:42,520 or slow down the processor enough to be able to actually talk to it over your parallel port. 598 00:35:42,840 --> 00:35:43,760 This is true. 599 00:35:43,860 --> 00:35:47,340 Just remember, sometimes bugs will not happen at a slower speed, 600 00:35:47,420 --> 00:35:48,880 and they will when you speed up. 601 00:35:49,180 --> 00:35:52,460 I've seen things where just actually plugging on an emulator pod 602 00:35:52,460 --> 00:35:56,280 or even a logic analyzer pod slows things down just enough 603 00:35:56,280 --> 00:36:00,320 that you're on the border of some sort of a waveform that it'll work. 604 00:36:00,440 --> 00:36:02,900 And the minute you unplug it, everything goes flaky again. 605 00:36:03,220 --> 00:36:04,240 In fact, I've got a friend. 606 00:36:04,440 --> 00:36:07,540 I just spent three weeks trying to trace down what the heck the hardware problem was 607 00:36:07,540 --> 00:36:10,140 because every time they stuck on any sort of debugging equipment, 608 00:36:10,520 --> 00:36:11,600 the problem went away. 609 00:36:14,140 --> 00:36:16,620 So just remember, timing can be a real pain. 610 00:36:20,420 --> 00:36:24,000 Oh, also, on the logic analyzer front, you can probably find some old ones, 611 00:36:24,180 --> 00:36:26,740 old used ones that you can probably buy pretty cheap. 612 00:36:26,780 --> 00:36:30,960 They're not going to do all the nice new fancy things as the HPs do currently, 613 00:36:31,520 --> 00:36:34,040 but if you just want some real simple... 614 00:36:34,440 --> 00:36:35,900 You want to just be able to see what's going on, 615 00:36:35,940 --> 00:36:41,440 a good old-fashioned 12, 20-year-old bargain basement logic analyzer 616 00:36:41,440 --> 00:36:42,880 is probably going to work for you. 617 00:36:51,400 --> 00:36:55,540 Either I'm a complete genius or you're very bored because I'm not getting... 618 00:36:55,540 --> 00:36:56,340 Oh, I've got a question. 619 00:36:56,520 --> 00:36:57,340 Go for it. 620 00:37:06,260 --> 00:37:10,520 I've got a myth that most of what I do, if I'm going to get information, 621 00:37:10,640 --> 00:37:14,820 I actually read journals on it rather than going on the web for information. 622 00:37:15,340 --> 00:37:17,900 Embedded Systems Journal is a very good magazine 623 00:37:17,900 --> 00:37:20,580 if you actually want to do any research into it. 624 00:37:20,680 --> 00:37:23,620 If you're actually looking for information just on specific chips, 625 00:37:23,840 --> 00:37:25,880 you can go to the manufacturer's site. 626 00:37:26,000 --> 00:37:28,040 They're going to be able to give you full data sheets. 627 00:37:28,200 --> 00:37:32,180 Quite often, you can download samples of code to make this thing work. 628 00:37:33,200 --> 00:37:34,440 It's very nice. 629 00:37:35,420 --> 00:37:37,920 I logged on, for example... 630 00:37:37,920 --> 00:37:38,240 Let's see. 631 00:37:38,320 --> 00:37:39,160 Let's find one of these. 632 00:37:42,100 --> 00:37:42,620 Onto... 633 00:37:43,240 --> 00:37:44,320 Shoot, let's pick up one. 634 00:37:46,200 --> 00:37:46,960 Let's start here. 635 00:37:47,080 --> 00:37:48,220 Professional Semiconductor. 636 00:37:48,220 --> 00:37:50,560 I got just a basic little description here. 637 00:37:50,740 --> 00:37:53,000 In addition, I could have gotten the entire spec, 638 00:37:53,060 --> 00:37:55,940 which was a PDF file for 182 pages, 639 00:37:56,580 --> 00:37:59,800 which went into details about how to design, 640 00:38:00,040 --> 00:38:01,420 how to connect this, 641 00:38:01,420 --> 00:38:03,140 what the waveforms look like, 642 00:38:03,240 --> 00:38:05,980 clocking cycles, power, everything like that. 643 00:38:06,100 --> 00:38:09,460 In addition, I could actually find some sample code. 644 00:38:09,660 --> 00:38:12,960 You usually can't find it as often for the T1 chips. 645 00:38:13,080 --> 00:38:15,860 Even that, you can usually find sample code that you can just download. 646 00:38:16,500 --> 00:38:20,480 For Flash, guaranteed you can find code that you can actually download, 647 00:38:20,700 --> 00:38:22,420 and with very little changes, 648 00:38:22,800 --> 00:38:24,880 you'll actually be able to get to work on your system. 649 00:38:25,840 --> 00:38:29,660 A lot of these people will actually have hardware diagrams 650 00:38:29,660 --> 00:38:31,400 of how you can... 651 00:38:31,400 --> 00:38:33,820 wire in this chip into a standard setup. 652 00:38:34,120 --> 00:38:38,660 So you'll be able to download specs, schematics, code, everything. 653 00:38:39,000 --> 00:38:41,520 Your best friend is usually the manufacturer's website. 654 00:38:41,720 --> 00:38:42,740 If you can't find it there, 655 00:38:42,880 --> 00:38:46,960 you go back to that nice little vendor who gave you your sample chips 656 00:38:46,960 --> 00:38:48,640 and tell them you're having problems. 657 00:38:48,780 --> 00:38:53,340 Before you know it, they'll actually have some sort of a sales engineer out there 658 00:38:53,340 --> 00:38:55,400 trying to talk you through what's wrong. 659 00:39:03,720 --> 00:39:05,500 Circuit Seller actually isn't bad. 660 00:39:05,600 --> 00:39:07,220 They give you some good drawings. 661 00:39:07,440 --> 00:39:10,700 They tell you the details of the chips. 662 00:39:12,080 --> 00:39:14,220 I've still got a 70-year-old issue 663 00:39:14,220 --> 00:39:16,760 which tells you how to build your own carburetor for 25 bucks, 664 00:39:16,980 --> 00:39:19,740 which one of these days I'm actually going to do. 665 00:39:21,060 --> 00:39:23,500 Circuit Seller's really good for the home hobbyist. 666 00:39:24,720 --> 00:39:27,960 Again, I'm afraid sometimes being a professional, 667 00:39:28,000 --> 00:39:30,000 you tend to look a little higher than that stuff, 668 00:39:30,120 --> 00:39:31,300 which is why I mention things like, 669 00:39:31,400 --> 00:39:32,340 that insistence journal. 670 00:39:32,600 --> 00:39:34,560 Circuit Seller's actually really good. 671 00:39:47,740 --> 00:39:49,820 Okay, portable prom burners. 672 00:39:51,540 --> 00:39:54,540 He was asking me if I know of anyone 673 00:39:54,540 --> 00:39:58,160 who manufactures some sort of a prom burner that is portable 674 00:39:58,160 --> 00:40:00,960 so that it doesn't require a great godness of power, 675 00:40:00,960 --> 00:40:02,620 and you can basically hook up to your laptop 676 00:40:02,620 --> 00:40:03,860 and be able to burn at will. 677 00:40:04,400 --> 00:40:06,400 I don't know anyone exactly. 678 00:40:06,480 --> 00:40:08,620 There are some companies that make prom burners 679 00:40:08,620 --> 00:40:11,940 that are fairly small and don't require too much power. 680 00:40:12,300 --> 00:40:14,220 I don't know any that work off a battery 681 00:40:14,220 --> 00:40:15,980 or off of the PC's power. 682 00:40:16,200 --> 00:40:17,920 You'd have to somehow or another plug in. 683 00:40:18,120 --> 00:40:20,680 Some of them will just require a little 9-volt transformer. 684 00:40:21,740 --> 00:40:24,080 Actually, in this case, Circuit Seller's your best bet 685 00:40:24,080 --> 00:40:24,840 to take a look on. 686 00:40:24,900 --> 00:40:28,740 They'll probably list a good 20 or 30 different prom burners for you 687 00:40:28,740 --> 00:40:29,940 of various levels. 688 00:40:30,960 --> 00:40:32,940 And you may actually find one that's real simple. 689 00:40:33,040 --> 00:40:35,800 A lot of them you can actually plug into like a parallel port 690 00:40:35,800 --> 00:40:36,560 and burn your prom. 691 00:40:36,840 --> 00:40:39,500 Another solution is just become real friendly 692 00:40:39,500 --> 00:40:41,920 with someone who's got access to a prom burner at work 693 00:40:41,920 --> 00:40:43,720 and let them sneak you in on the weekends. 694 00:40:43,940 --> 00:40:45,820 This is real convenient because one of the benefits 695 00:40:45,820 --> 00:40:48,660 of a prom burner is if you've got code from another product, 696 00:40:48,900 --> 00:40:51,800 you can actually stick the prom in the prom burner 697 00:40:51,800 --> 00:40:55,140 and have it download to a binary file that you then can search 698 00:40:55,140 --> 00:40:56,660 through at will to find out. 699 00:40:56,740 --> 00:40:59,560 Clear text, if you want, or anything else, 700 00:40:59,660 --> 00:41:00,760 twiddle a couple bits. 701 00:41:00,960 --> 00:41:04,460 And all of a sudden, it works a little bit differently than intended. 702 00:41:04,780 --> 00:41:06,640 So, this can sometimes be really useful. 703 00:41:26,880 --> 00:41:30,700 Okay, the question is about the embedded systems in cars. 704 00:41:30,960 --> 00:41:34,360 Are there any websites to be able to go to to find out information 705 00:41:34,360 --> 00:41:38,720 about the actual chips, the chips that are running inside your car? 706 00:41:38,880 --> 00:41:41,000 The answer is I'm sure there are. 707 00:41:41,080 --> 00:41:43,920 I'm not aware of any off the top of my head. 708 00:41:44,060 --> 00:41:47,580 I know of a lot of companies that offer to sell you modified versions 709 00:41:47,580 --> 00:41:49,840 of various chips for your car. 710 00:41:50,220 --> 00:41:52,920 One of the most common is to get rid of the speed limiters. 711 00:41:55,240 --> 00:41:58,140 I don't know too much more about that stuff. 712 00:41:58,460 --> 00:42:00,940 I had a friend who somehow had a connection with a car. 713 00:42:00,960 --> 00:42:04,180 Back in GM, he was actually able to get modified code for his car. 714 00:42:04,280 --> 00:42:07,280 And he just came into work and burned himself a new bomb, swapped it out, 715 00:42:07,400 --> 00:42:11,360 and suddenly was able to get much better gas mileage out of his truck. 716 00:42:12,080 --> 00:42:14,900 But I don't know of any websites specifically. 717 00:42:15,160 --> 00:42:15,520 I'm sorry. 718 00:42:28,980 --> 00:42:30,420 So, FPGAs, do I ever use them? 719 00:42:30,960 --> 00:42:31,600 Those are usual. 720 00:42:33,020 --> 00:42:35,060 I personally don't use them. 721 00:42:35,160 --> 00:42:36,360 A lot of people do. 722 00:42:36,460 --> 00:42:40,420 That is generally considered more along the lines of hardware engineering 723 00:42:40,420 --> 00:42:41,520 or software engineering. 724 00:42:41,940 --> 00:42:45,020 And the hardware engineers don't particularly like me in their domain. 725 00:42:45,400 --> 00:42:50,580 It's simply about me tending to destroy just about anything I put my hands on. 726 00:42:51,620 --> 00:42:52,540 They're nice. 727 00:42:52,760 --> 00:42:53,900 They're a little expensive. 728 00:42:54,720 --> 00:43:00,600 They tend to be, they tend to do very customized things, much like ASICs. 729 00:43:00,960 --> 00:43:05,160 They can do some stuff that you're still going to have to throw a microprocessor in it. 730 00:43:05,220 --> 00:43:10,380 And for the general little home hobbyist, you're probably just going to want to do a microprocessor 731 00:43:10,380 --> 00:43:12,180 and give up the little extra speed that you get. 732 00:43:17,980 --> 00:43:18,660 Oh, okay. 733 00:43:32,200 --> 00:43:36,880 He wants to know about mailing lists or newsgroups to be able to find out about this. 734 00:43:38,240 --> 00:43:40,360 I haven't done a lot of research into it. 735 00:43:40,400 --> 00:43:45,160 I know there's a couple newsgroups in the alt-comp area. 736 00:43:45,360 --> 00:43:48,960 I don't remember the exact addresses where they talk about some of that. 737 00:43:49,040 --> 00:43:52,740 I've popped in once or twice when I've had to ask a very specific question 738 00:43:52,740 --> 00:43:59,400 and generally gotten one or two good responses followed with a lot of crap that I don't want to have to deal with. 739 00:43:59,400 --> 00:44:02,160 So I don't pay attention to them very much. 740 00:44:14,060 --> 00:44:18,080 He wants to know if there's any groups that are talking about what people are working on currently, 741 00:44:18,200 --> 00:44:20,680 talking about nice, new, cool stuff and things like that. 742 00:44:22,740 --> 00:44:24,480 The answer is I'm not sure. 743 00:44:24,600 --> 00:44:28,040 I've seen one or two that purport to be so on the internet. 744 00:44:28,040 --> 00:44:31,760 But I find most of them start off with someone presenting something 745 00:44:31,760 --> 00:44:34,060 and they devolve very quickly into flame wars. 746 00:44:34,420 --> 00:44:37,640 Oh, well, you must be a complete idiot because of blah, blah, blah, blah, blah. 747 00:44:37,700 --> 00:44:41,580 And so it's very hard to actually get very useful information out of them. 748 00:44:41,700 --> 00:44:45,120 If you actually find one that's worthwhile, I'd be very interested. 749 00:44:58,040 --> 00:45:03,260 He wants to know about the iOS by Dell, whether there's any back doors and how to hack that. 750 00:45:03,460 --> 00:45:05,540 I don't know too much about it. 751 00:45:05,560 --> 00:45:10,000 The first way to go around finding out if there's any back doors is to get all the information on it. 752 00:45:10,020 --> 00:45:11,060 See about getting a spec. 753 00:45:11,180 --> 00:45:14,600 See if you can get some sort of a schematic where you draw up on it. 754 00:45:14,880 --> 00:45:21,820 See, most of these companies are going to show you how the thing works to some degree or another. 755 00:45:22,040 --> 00:45:26,920 Once you have an idea how it's actually going to work, you can start finding holes and figuring out how to hack it. 756 00:45:26,920 --> 00:45:31,060 But first, you need to find out how it works. 757 00:45:31,200 --> 00:45:36,300 So I'd recommend going out and getting every single piece of information you possibly can get on the iBus 758 00:45:36,300 --> 00:45:39,960 and spending the next couple of weeks being totally immersed in it. 759 00:45:40,000 --> 00:45:40,960 You'll probably find bugs. 760 00:45:41,080 --> 00:45:44,100 I haven't found anything where there isn't a bug in it somewhere. 761 00:45:51,560 --> 00:45:52,440 Nothing else? 762 00:46:00,600 --> 00:46:01,000 No. 763 00:46:13,660 --> 00:46:18,060 Right, yeah, you're talking basically about the PC on a stick I was mentioning earlier. 764 00:46:18,180 --> 00:46:21,460 He said he was at Comdex and he saw a little PC just on a small board. 765 00:46:22,580 --> 00:46:25,140 There's a company that makes and calls them PC on a stick. 766 00:46:25,200 --> 00:46:26,620 They do a little PC on a cube. 767 00:46:26,620 --> 00:46:29,400 Which is like, I don't know, so big or so. 768 00:46:30,360 --> 00:46:31,900 Which has everything built in. 769 00:46:32,080 --> 00:46:34,360 This makes it really convenient, easy to develop. 770 00:46:34,540 --> 00:46:39,040 And let's admit it, there's three trillion pieces of software out there that'll actually run on the PC, 771 00:46:39,180 --> 00:46:41,880 which takes your development time and minimizes it extremely. 772 00:46:42,440 --> 00:46:45,080 These are probably good ideas for the home hobbyist. 773 00:46:45,140 --> 00:46:52,100 However, if you're going to get serious and you want something that's going to work in a very narrow field, 774 00:46:52,320 --> 00:46:56,500 you're probably going to find that this is a little bit too broad for what you want. 775 00:46:56,500 --> 00:46:59,600 However, for a starter, it's probably ideal. 776 00:47:07,300 --> 00:47:08,260 We're all happy? 777 00:47:09,480 --> 00:47:10,920 Oops, I see another question. 778 00:47:10,980 --> 00:47:11,660 Hold on one sec. 779 00:47:21,040 --> 00:47:23,440 Oh boy, he's asking about testing cycles. 780 00:47:24,660 --> 00:47:29,740 There's these wonderful, great little design plans that come out that never actually work. 781 00:47:29,900 --> 00:47:37,060 Usually what's happening is you end up writing your code probably two months before there's actually any hardware for you to stick it on. 782 00:47:37,180 --> 00:47:42,780 You're hoping and praying that the hardware will actually get done before you get to the point where you cannot write any more code. 783 00:47:43,000 --> 00:47:49,500 When that happens, you stop your code on and you spend the next three months hand-in-hand with the hardware engineer at one in the morning, 784 00:47:49,540 --> 00:47:53,320 tearing your hair out, trying to figure out whose problem is going on. 785 00:47:54,660 --> 00:48:02,480 It's really painful if you don't have already well-developed hardware because you're trying to figure out whose problem you're trying to debug, 786 00:48:02,620 --> 00:48:06,420 whether it's software, whether it's hardware, and whether it's easier to fix in software or hardware. 787 00:48:06,940 --> 00:48:12,420 Usually, if it can be fixed in software, that's where to go because, let's admit it, software's cheaper, it's easier to change. 788 00:48:12,760 --> 00:48:15,460 Hardware's a royal pain to have to go wiring stuff up to. 789 00:48:16,080 --> 00:48:23,300 So there will quite often be knock-down, drag-out fights with people screaming at each other because the software guy doesn't want to have to fix it. 790 00:48:23,300 --> 00:48:26,500 And the hardware guy refuses to fix it in his code. 791 00:48:26,900 --> 00:48:30,820 And, yes, blood will sometimes occasionally flow. 792 00:48:31,680 --> 00:48:40,060 But, in general, it's going to probably take two to three months, well, for a large board. 793 00:48:40,140 --> 00:48:43,200 For a small board, it's probably only going to take a couple weeks to debug the hardware. 794 00:48:43,520 --> 00:48:45,720 The software usually is going to take longer. 795 00:48:46,020 --> 00:48:53,180 Unfortunately, sometimes there will be a hardware bug that will not show up until many months actually into the development and debugging cycle. 796 00:48:53,300 --> 00:48:58,180 Sometimes it will not even show up until you actually change software enough. 797 00:48:58,520 --> 00:49:04,940 I've run into problems where it works perfectly fine on one version of software and the next version it breaks. 798 00:49:05,100 --> 00:49:10,020 And everyone blinks the software until you discover it's actually suddenly exploiting a hardware bug that no one knew existed. 799 00:49:12,540 --> 00:49:20,220 That's one of the benefits about buying demo boards or a little PC on a stick solution is you're avoiding a lot of the hardware pains. 800 00:49:24,520 --> 00:49:25,820 How can modem connections? 801 00:49:28,040 --> 00:49:33,900 First thing you're going to have to do is you're going to have to have some sort of access to the line that the modems that are coming in are out on. 802 00:49:36,320 --> 00:49:41,400 So you're going to have to plug in some sort of a box that's going to take either a phone line or a key one in and out. 803 00:49:41,660 --> 00:49:52,540 Secondly, you're going to have to know, well, the easiest way would be to know what type of modem the person is running so that you have an idea of what protocols you're going to want to be running off. 804 00:49:52,620 --> 00:49:53,280 So, thank you. 805 00:49:53,300 --> 00:50:00,200 Basically, to be able to talk to a modem connection, you're going to need a modem data pump to be able to translate this into something you can read. 806 00:50:00,380 --> 00:50:04,780 So you're almost going to have to have a modem to begin with and then just modify it somewhat. 807 00:50:06,260 --> 00:50:07,640 This is not terribly convenient. 808 00:50:07,780 --> 00:50:11,680 You can have something that's going to just collect the data and spit it out to you. 809 00:50:11,740 --> 00:50:17,020 But to translate that data into actual usable terms, you're going to need a modem data pump. 810 00:50:17,180 --> 00:50:23,280 And depending on what type of modem you're talking to, you're going to need the appropriate data pump because everyone knows that not every single data pump works. 811 00:50:23,280 --> 00:50:25,500 Every single data pump is quite as compatible as they claim it to be. 812 00:50:31,300 --> 00:50:31,680 Okay. 813 00:50:31,960 --> 00:50:33,400 Now, is everyone happy? 814 00:50:34,660 --> 00:50:35,040 Okay. 815 00:50:35,320 --> 00:50:35,940 Thank you.