WEBVTT

00:00:00.000 --> 00:00:01.500
<v Chris Gammell>This is The Amp Hour Podcast.

00:00:02.760 --> 00:00:05.740
<v Chris Gammell>Released September 6th, 2021.

00:00:07.820 --> 00:00:09.640
<v Chris Gammell>Episode 556.

00:00:11.340 --> 00:00:14.240
<v Chris Gammell>Firmware for hardware engineers with Philip Johnston.

00:00:30.000 --> 00:00:33.420
<v Chris Gammell>Welcome to the Amp Hour. I'm Chris Gammell of Contextual Electronics.

00:00:33.920 --> 00:00:39.280
<v Philip Johnston>I'm Philip Johnston. I'm half of Embedded Artistry and Embedded Systems Consulting and Education Company.

00:00:39.940 --> 00:00:40.960
<v Philip Johnston>Welcome, Philip. How are you?

00:00:41.300 --> 00:00:42.420
<v Philip Johnston>I'm doing great. How are you, Chris?

00:00:43.200 --> 00:00:48.240
<v Chris Gammell>I'm good. A little nervous to be talking about firmware, you know, like showcasing all the things I don't know.

00:00:48.360 --> 00:00:50.060
<v Chris Gammell>But I guess that's how we get better at things, right?

00:00:50.440 --> 00:00:50.800
<v Chris Gammell>Absolutely.

00:00:51.540 --> 00:00:55.120
<v Chris Gammell>Yeah. So people may have heard you on Embedded FM before.

00:00:55.120 --> 00:01:00.000
<v Chris Gammell>They may have read your voluminous amount of blogs and writings out there.

00:01:00.820 --> 00:01:04.620
<v Chris Gammell>But how much firmware have you done in your life?

00:01:04.680 --> 00:01:08.060
<v Chris Gammell>I mean, what is the firmware background that you have?

00:01:08.740 --> 00:01:12.440
<v Philip Johnston>Well, I've been writing firmware now for probably 12 years.

00:01:13.160 --> 00:01:15.400
<v Philip Johnston>I actually started out as an electrical engineer.

00:01:15.880 --> 00:01:17.960
<v Philip Johnston>I was working at a defense contractor.

00:01:18.300 --> 00:01:18.820
<v Philip Johnston>One of us.

00:01:18.820 --> 00:01:27.540
<v Philip Johnston>I guess as a teenager, I programmed and I had heard all these horror stories about what, you know, working as a programmer was like.

00:01:27.580 --> 00:01:29.500
<v Philip Johnston>And I was like, oh, I'm never going to do that.

00:01:29.640 --> 00:01:32.280
<v Philip Johnston>Of course, I didn't know that pretty much all engineering was the same.

00:01:33.240 --> 00:01:38.920
<v Philip Johnston>So I, yeah, I was wanted to start as an electrical engineer and I worked on radar systems.

00:01:39.660 --> 00:01:40.840
<v Philip Johnston>So, you know, I did a lot of things.

00:01:41.200 --> 00:01:45.960
<v Philip Johnston>Electrical engineers do kit bombs, order parts, do layout, make schematics.

00:01:45.960 --> 00:01:50.360
<v Philip Johnston>Worked on a little bit of VHDL for redesigning some systems.

00:01:51.080 --> 00:01:54.320
<v Philip Johnston>And then they ran out of work for me on the defense project.

00:01:54.440 --> 00:02:01.460
<v Philip Johnston>So I got some nonsense task of updating copyright dates and, you know, thousands of source code files.

00:02:01.600 --> 00:02:04.140
<v Philip Johnston>So I wrote a script and got that done, I think, in an afternoon.

00:02:04.340 --> 00:02:06.140
<v Philip Johnston>And the software team sucked me up.

00:02:06.140 --> 00:02:17.180
<v Philip Johnston>And, you know, I didn't know firmware was a thing, but they had a new project with the Army's rapid equipping force to develop a suite of sensors to measure the force of IED explosions.

00:02:17.440 --> 00:02:20.100
<v Philip Johnston>So I got to work on one of those systems.

00:02:20.100 --> 00:02:22.120
<v Philip Johnston>And ever since then, I've been writing firmware.

00:02:22.440 --> 00:02:24.440
<v Philip Johnston>So I've worked on radar systems.

00:02:24.440 --> 00:02:26.880
<v Philip Johnston>I've worked on the IED measurement systems.

00:02:26.880 --> 00:02:29.720
<v Philip Johnston>I wrote manufacturing firmware at Apple.

00:02:30.160 --> 00:02:40.680
<v Philip Johnston>I've, you know, written most of the firmware for a couple of different products for different startups and, you know, a number of open source libraries that are used in various products.

00:02:40.680 --> 00:02:46.520
<v Philip Johnston>And little bits of my code are in, I guess, dozens more companies now since I've been consulting.

00:02:46.840 --> 00:02:47.980
<v Philip Johnston>So quite a bit of firmware.

00:02:48.880 --> 00:02:49.580
<v Chris Gammell>Yeah, that's awesome.

00:02:49.820 --> 00:02:53.140
<v Chris Gammell>When you first said kit bomb, you said defense contractor and you said kit bombs.

00:02:53.220 --> 00:02:54.660
<v Chris Gammell>I'm like, oh, what's a kit bomb?

00:02:54.660 --> 00:02:56.280
<v Chris Gammell>Kitting bombs.

00:02:56.500 --> 00:02:57.460
<v Chris Gammell>So like, I guess.

00:02:57.500 --> 00:03:01.360
<v Chris Gammell>I figured it out after the fact, but I was just like, oh, that's a different type of bomb.

00:03:01.860 --> 00:03:02.260
<v Chris Gammell>Yeah.

00:03:02.880 --> 00:03:04.960
<v Philip Johnston>Counting resistors and putting them in little drawers.

00:03:05.380 --> 00:03:06.740
<v Philip Johnston>That's what the new guy gets to do.

00:03:06.980 --> 00:03:07.540
<v Philip Johnston>That's right.

00:03:07.660 --> 00:03:07.900
<v Philip Johnston>Yeah.

00:03:08.480 --> 00:03:09.740
<v Chris Gammell>Well, I mean, that shift over.

00:03:09.860 --> 00:03:12.860
<v Chris Gammell>I mean, that is a something we've heard on the show before.

00:03:13.140 --> 00:03:18.160
<v Chris Gammell>And I think it's an interesting perspective because it is common.

00:03:18.460 --> 00:03:21.500
<v Chris Gammell>It's I feel like there's there's never, you know, firmware is never done.

00:03:21.560 --> 00:03:24.600
<v Chris Gammell>It feels like, you know, there's always another feature you could add another.

00:03:25.140 --> 00:03:26.060
<v Chris Gammell>Improvement you can do.

00:03:26.120 --> 00:03:30.220
<v Chris Gammell>Whereas hardware, it's like in a best case scenario, you've you have gotten to the point

00:03:30.220 --> 00:03:35.380
<v Chris Gammell>where it's like, all right, this is, you know, discounting the entire supply chain mess

00:03:35.380 --> 00:03:36.000
<v Chris Gammell>that we're in right now.

00:03:36.200 --> 00:03:38.500
<v Chris Gammell>This thing could be made the same way for many years.

00:03:39.040 --> 00:03:40.580
<v Chris Gammell>And then you're done ish.

00:03:40.580 --> 00:03:41.440
<v Chris Gammell>You move on to the next thing.

00:03:41.520 --> 00:03:44.080
<v Chris Gammell>Whereas firmware, it feels like you kind of keep keep on going there.

00:03:44.140 --> 00:03:46.140
<v Chris Gammell>So it does feel like there's more to do there.

00:03:46.200 --> 00:03:47.320
<v Chris Gammell>Is that your experience as well?

00:03:47.320 --> 00:03:49.020
<v Philip Johnston>I think so.

00:03:49.200 --> 00:03:54.960
<v Philip Johnston>And I definitely think that's even more true nowadays where, you know, products are increasingly

00:03:54.960 --> 00:03:55.720
<v Philip Johnston>complex.

00:03:55.720 --> 00:03:59.520
<v Philip Johnston>It's not just like you're writing firmware for a standalone device that you deploy in

00:03:59.520 --> 00:04:02.660
<v Philip Johnston>the field and you can't remotely update and you don't touch it again.

00:04:02.660 --> 00:04:06.060
<v Philip Johnston>Like that's how it started when I first started writing firmware.

00:04:06.340 --> 00:04:11.860
<v Philip Johnston>And now it's, you know, minimum product is going to be something with a bootloader, with

00:04:11.860 --> 00:04:16.020
<v Philip Johnston>an application, probably with manufacturing test firmware that talks to an Android app,

00:04:16.060 --> 00:04:18.400
<v Philip Johnston>an iPhone app, an update server, an IOT backend.

00:04:20.020 --> 00:04:25.420
<v Philip Johnston>And, you know, people want new features and you can release earlier and develop things,

00:04:25.560 --> 00:04:29.280
<v Philip Johnston>you know, once your product's in the field and make your product seem like it's evolving

00:04:29.280 --> 00:04:31.840
<v Philip Johnston>and changing, I definitely think that's much more common now.

00:04:33.220 --> 00:04:34.040
<v Chris Gammell>Moving into that.

00:04:34.200 --> 00:04:38.980
<v Chris Gammell>So moving from the hardware space into the firmware space, did you feel like you were at a disadvantage?

00:04:39.120 --> 00:04:43.360
<v Chris Gammell>Because I also know people like, so for example, like I know Chris White and I think Alicia

00:04:43.360 --> 00:04:47.400
<v Chris Gammell>White as well, both came from the software side into the firmware space.

00:04:47.620 --> 00:04:51.660
<v Chris Gammell>And then we're talking about coming from the hardware side into the firmware space.

00:04:51.660 --> 00:04:56.180
<v Chris Gammell>And so like kind of a different skill set, maybe different methodologies, things that I've

00:04:56.180 --> 00:05:01.100
<v Chris Gammell>seen personally, like even just managing revision control and understanding that before you come

00:05:01.100 --> 00:05:01.620
<v Chris Gammell>in as well.

00:05:01.780 --> 00:05:07.280
<v Chris Gammell>So did you find that that was a hindrance then or was being closer to the hardware a benefit

00:05:07.280 --> 00:05:09.200
<v Chris Gammell>that other people might not have had?

00:05:10.600 --> 00:05:12.500
<v Philip Johnston>I don't think it was a hindrance for me.

00:05:12.680 --> 00:05:17.700
<v Philip Johnston>I guess it helped that I had a programming background already just from being interested

00:05:17.700 --> 00:05:18.540
<v Philip Johnston>as a teenager.

00:05:19.040 --> 00:05:23.200
<v Philip Johnston>When I started working with the software team, I worked with pure software folks.

00:05:23.200 --> 00:05:29.000
<v Philip Johnston>So I got to, you know, I got an introduction into professional source code revision control

00:05:29.000 --> 00:05:32.580
<v Philip Johnston>and how they manage releases and things of that nature.

00:05:32.580 --> 00:05:37.680
<v Philip Johnston>And then when I started working on firmware itself, I found that my hardware experience

00:05:37.680 --> 00:05:38.720
<v Philip Johnston>really did help.

00:05:38.900 --> 00:05:42.920
<v Philip Johnston>And I tend to focus on bringing up new systems for the first time.

00:05:43.320 --> 00:05:49.760
<v Philip Johnston>So in that way, like I specialized in, okay, the code's not running correctly or the system's

00:05:49.760 --> 00:05:54.360
<v Philip Johnston>not booting up and I need to look at a schematic and sit down with an electrical engineer and

00:05:54.360 --> 00:05:58.660
<v Philip Johnston>go through everything and make sure the rails are coming up and the layout's correct.

00:05:59.180 --> 00:06:04.140
<v Philip Johnston>We've run into problems before where like the polarity on the DRAM lines is flipped or,

00:06:04.280 --> 00:06:08.320
<v Philip Johnston>you know, the battery signals are routed wrong, you know, you name it, I've seen it.

00:06:08.560 --> 00:06:12.740
<v Philip Johnston>And I think it really helped me in that regard, having the hardware background.

00:06:13.120 --> 00:06:18.480
<v Philip Johnston>And even, I guess, going on to working on manufacturing test firmware, you know, it was really important

00:06:18.480 --> 00:06:21.820
<v Philip Johnston>for me to have hardware background because when something fails on the production line,

00:06:21.940 --> 00:06:25.220
<v Philip Johnston>you need to open up the system and look and see what's happening.

00:06:25.500 --> 00:06:26.660
<v Philip Johnston>Try to figure out, is it hardware?

00:06:26.860 --> 00:06:27.960
<v Philip Johnston>Is it the firmware?

00:06:28.160 --> 00:06:29.840
<v Philip Johnston>Is it a problem with the test station?

00:06:30.200 --> 00:06:31.460
<v Philip Johnston>Is it an intermittent issue?

00:06:31.640 --> 00:06:35.480
<v Philip Johnston>You know, narrowing that down, I really needed to have that hardware skill set.

00:06:35.700 --> 00:06:37.940
<v Philip Johnston>So I never felt like it hindered me in any way.

00:06:38.740 --> 00:06:45.600
<v Philip Johnston>I guess one challenge though was catching up with some of the software techniques and figuring

00:06:45.600 --> 00:06:49.400
<v Philip Johnston>out how to write the software in maybe a non-naive way.

00:06:49.480 --> 00:06:49.880
<v Philip Johnston>Yeah.

00:06:50.040 --> 00:06:54.000
<v Philip Johnston>Where I'm not just directly interfacing with registers and writing this one-off software

00:06:54.000 --> 00:06:58.900
<v Philip Johnston>that, you know, can't be moved to a new part or when a change comes, it's hard to make that

00:06:58.900 --> 00:06:59.240
<v Philip Johnston>change.

00:06:59.340 --> 00:07:01.500
<v Philip Johnston>You know, that's really where the challenge has started.

00:07:02.060 --> 00:07:09.040
<v Chris Gammell>That's a great framing because that is where I feel, you know, doing bitwise math and manipulating

00:07:09.040 --> 00:07:11.200
<v Chris Gammell>registers, I feel pretty comfortable with that.

00:07:11.200 --> 00:07:15.640
<v Chris Gammell>But it is kind of moving up the stack and like, I don't write libraries, you know, maybe

00:07:15.640 --> 00:07:19.040
<v Chris Gammell>I'll use someone else's library, but, you know, moving up from there.

00:07:19.040 --> 00:07:25.080
<v Chris Gammell>And then now I'm into like real-time operating systems and manipulating like over device overlays

00:07:25.080 --> 00:07:27.000
<v Chris Gammell>and K configs and Zephyr and stuff like that.

00:07:27.000 --> 00:07:32.540
<v Chris Gammell>And it's just like, it feels like I'm kind of fast forwarding a lot more and almost like

00:07:32.540 --> 00:07:37.120
<v Chris Gammell>leaving, not leaving this, the hardware stuff behind, but I'm definitely out of my element.

00:07:37.220 --> 00:07:37.700
<v Chris Gammell>I know that.

00:07:37.700 --> 00:07:43.540
<v Chris Gammell>And so then how does someone migrate into that space and start to learn those things

00:07:43.540 --> 00:07:48.620
<v Chris Gammell>and learn testing and learn all of the, all the methodologies that are going to make people

00:07:48.620 --> 00:07:49.680
<v Chris Gammell>better engineers?

00:07:50.440 --> 00:07:54.120
<v Philip Johnston>It's a difficult question because I don't, I don't think there's a really easy answer.

00:07:54.500 --> 00:07:54.940
<v Philip Johnston>Damn.

00:07:55.180 --> 00:07:59.780
<v Chris Gammell>I was hoping to be like, well, here's, here's a, here's a one page PDF and just read this

00:07:59.780 --> 00:08:01.100
<v Chris Gammell>Chris and you're good.

00:08:01.100 --> 00:08:07.620
<v Philip Johnston>I do think there are some fundamental ideas that we can start thinking about that helps

00:08:07.620 --> 00:08:12.960
<v Philip Johnston>us structure our code in a way that makes it more use reusable, more easily changed or

00:08:12.960 --> 00:08:13.920
<v Philip Johnston>more easily tested.

00:08:14.160 --> 00:08:17.240
<v Philip Johnston>They're nothing new separation of concerns.

00:08:17.420 --> 00:08:22.120
<v Philip Johnston>I think that's something that every engineer is trained to think about, even as an electrical

00:08:22.120 --> 00:08:26.360
<v Philip Johnston>engineer, you know, you want different pieces of your subsystem to be responsible for different

00:08:26.360 --> 00:08:26.800
<v Philip Johnston>things.

00:08:26.920 --> 00:08:31.560
<v Philip Johnston>And ideally that's going to be, you know, every piece of your system has a single responsibility

00:08:31.560 --> 00:08:35.920
<v Philip Johnston>and things that pull double duty tend to bring the system down when they fail.

00:08:36.240 --> 00:08:42.140
<v Philip Johnston>So trying to figure out how can I make software out of smaller pieces that each one does one

00:08:42.140 --> 00:08:43.900
<v Philip Johnston>thing and that makes it easier to test.

00:08:44.000 --> 00:08:45.280
<v Philip Johnston>It makes it easier to understand.

00:08:45.920 --> 00:08:52.880
<v Philip Johnston>You know, I think another key thing to learn is how to hide information in a way that it doesn't

00:08:52.880 --> 00:08:54.420
<v Philip Johnston>leak out to the rest of your system.

00:08:54.420 --> 00:08:59.260
<v Philip Johnston>And this might be something like, you know, do you really need to access your processor's

00:08:59.260 --> 00:09:00.760
<v Philip Johnston>registers throughout an application?

00:09:00.760 --> 00:09:05.920
<v Philip Johnston>Or is it better if you, if you did learn how to make a simple library that, you know, had

00:09:05.920 --> 00:09:09.900
<v Philip Johnston>functions that sort of hid what the processor was doing under the hood, which makes it easy

00:09:09.900 --> 00:09:14.900
<v Philip Johnston>if you need to switch to a new SDK or, you know, go to a new processor, which is definitely

00:09:14.900 --> 00:09:17.780
<v Philip Johnston>something we're all worried about right now with the chip shortage.

00:09:17.900 --> 00:09:22.820
<v Philip Johnston>It's easier to do than being like, oh, I have to rewrite everything because, you know, my code

00:09:22.820 --> 00:09:27.040
<v Philip Johnston>is so deeply intertwined with the underlying SDK or the underlying registers.

00:09:27.420 --> 00:09:31.540
<v Philip Johnston>And I think the other concept to think about is, you know, how do we keep pieces of our code

00:09:31.540 --> 00:09:37.920
<v Philip Johnston>loosely coupled so that I can change one piece without necessarily affecting a bunch of other

00:09:37.920 --> 00:09:38.880
<v Philip Johnston>pieces of my system?

00:09:39.380 --> 00:09:43.100
<v Philip Johnston>You know, I think those are, those are sort of like where I start in trying to think about

00:09:43.100 --> 00:09:48.480
<v Philip Johnston>how to structure systems in a way that we can work with them more easily and definitely

00:09:48.480 --> 00:09:49.040
<v Philip Johnston>test them.

00:09:50.020 --> 00:09:50.340
<v Chris Gammell>Yeah.

00:09:50.420 --> 00:09:54.460
<v Chris Gammell>I, I had, uh, I had put out a call, I don't know, it was like a year and a half ago now.

00:09:54.460 --> 00:09:56.140
<v Chris Gammell>I was just like, I want to get better at firmware.

00:09:56.140 --> 00:09:59.320
<v Chris Gammell>And everyone kind of came back with like, what do you mean, Chris?

00:09:59.420 --> 00:10:00.500
<v Chris Gammell>That's not like a thing.

00:10:00.500 --> 00:10:05.160
<v Chris Gammell>Like there is no like singular thing that you get better at, but like those three things

00:10:05.160 --> 00:10:08.500
<v Chris Gammell>you just gave there are kind of good starting points, right?

00:10:08.500 --> 00:10:14.440
<v Chris Gammell>Kind of just kind of not rules of thumb, but like, uh, just design methodologies and, and,

00:10:14.540 --> 00:10:17.740
<v Chris Gammell>and really almost like mantras of like, can this go smaller?

00:10:18.280 --> 00:10:23.620
<v Chris Gammell>Where is the atomic piece of a library versus like a, a function you're writing and, and then

00:10:23.620 --> 00:10:27.240
<v Chris Gammell>probably doing code reviews and, and similar type of things like that.

00:10:27.980 --> 00:10:28.420
<v Philip Johnston>Exactly.

00:10:28.420 --> 00:10:32.980
<v Philip Johnston>I think even just asking yourself the question, like you just said, you know, how can I make

00:10:32.980 --> 00:10:33.520
<v Philip Johnston>this smaller?

00:10:33.860 --> 00:10:36.820
<v Philip Johnston>You know, if I change this, what else has to change in the system?

00:10:36.820 --> 00:10:40.020
<v Philip Johnston>Would I be able to test this without the hardware in any way?

00:10:40.120 --> 00:10:44.420
<v Philip Johnston>Even just those questions as you're going along, I think prompt you into thinking in a different

00:10:44.420 --> 00:10:44.680
<v Philip Johnston>way.

00:10:45.320 --> 00:10:47.760
<v Chris Gammell>Could you explain the test this without the hardware in any way?

00:10:48.020 --> 00:10:51.960
<v Chris Gammell>Cause I think that's a, another thing that I kind of struggle with sometimes thinking

00:10:51.960 --> 00:10:53.900
<v Chris Gammell>about removing the actual hardware from the loop.

00:10:54.500 --> 00:10:54.660
<v Philip Johnston>Sure.

00:10:54.760 --> 00:10:59.520
<v Philip Johnston>I think that's one of the biggest challenges we face as embedded developers, partially because

00:10:59.520 --> 00:11:02.280
<v Philip Johnston>we're so geared to thinking about the hardware.

00:11:02.280 --> 00:11:07.780
<v Philip Johnston>And I don't remember if this was James Grenning or Jacob Beningo, but one of those two had

00:11:07.780 --> 00:11:11.960
<v Philip Johnston>this article at some point where they said, you got to remember the scene in the matrix

00:11:11.960 --> 00:11:13.800
<v Philip Johnston>where, where there is no spoon.

00:11:13.900 --> 00:11:16.420
<v Philip Johnston>And you just have to remember that there is no hardware.

00:11:16.580 --> 00:11:20.300
<v Philip Johnston>It's just another dependency like anything else that you have to manage.

00:11:20.300 --> 00:11:24.520
<v Chris Gammell>And a thousand voices cried out as they're listening saying, yeah, right.

00:11:24.580 --> 00:11:25.500
<v Chris Gammell>That's not how it works.

00:11:25.760 --> 00:11:26.980
<v Chris Gammell>That's not how it works.

00:11:27.320 --> 00:11:27.720
<v Chris Gammell>Yeah.

00:11:29.080 --> 00:11:33.600
<v Chris Gammell>With all due respect to Jacob and or James, uh, two of my favorite people in the firmware

00:11:33.600 --> 00:11:34.260
<v Chris Gammell>space as well.

00:11:35.840 --> 00:11:39.560
<v Philip Johnston>And, you know, I think that that is the initial reaction of, oh, it's not how it works.

00:11:39.600 --> 00:11:42.200
<v Philip Johnston>There's so much that's dependent on the hardware, which is true.

00:11:42.200 --> 00:11:48.080
<v Philip Johnston>I think part of the difficulty comes from the fact that when we're building our software,

00:11:48.660 --> 00:11:52.820
<v Philip Johnston>you know, we're not thinking about the information hiding, the separation of concerns and loose

00:11:52.820 --> 00:11:53.160
<v Philip Johnston>coupling.

00:11:53.340 --> 00:11:58.280
<v Philip Johnston>So then we have calls that depend on the hardware scattered throughout our software, which does

00:11:58.280 --> 00:12:01.240
<v Philip Johnston>make it, make it very difficult to separate pieces out and test it.

00:12:01.640 --> 00:12:06.200
<v Philip Johnston>So I found for me, something that helped is trying to think about, okay, which parts of

00:12:06.200 --> 00:12:10.500
<v Philip Johnston>my system are really dependent on the hardware and which parts could be made independent.

00:12:10.500 --> 00:12:18.660
<v Philip Johnston>So one example that I can share is I was working on a flex paging system piece of software.

00:12:18.960 --> 00:12:24.100
<v Philip Johnston>And, you know, if you think about getting a pager message, I have to have a radio IC that

00:12:24.100 --> 00:12:28.740
<v Philip Johnston>talks over spy to my processor so I can send or receive the data.

00:12:28.940 --> 00:12:34.260
<v Philip Johnston>I have to take that signal and decode it into the bits that make up the payload.

00:12:34.420 --> 00:12:38.300
<v Philip Johnston>Then I have to decode that payload into a message according to the paging standard.

00:12:38.300 --> 00:12:44.740
<v Philip Johnston>Well, there's a significant amount of that pipeline that I can test by just having an input data

00:12:44.740 --> 00:12:50.500
<v Philip Johnston>array that runs through the decoder and the state machine that handles the messages and

00:12:50.500 --> 00:12:51.300
<v Philip Johnston>things like that.

00:12:51.400 --> 00:12:53.280
<v Philip Johnston>I don't actually need the hardware to test that.

00:12:53.440 --> 00:12:58.080
<v Philip Johnston>So there, you know, one of the tricks I've used is I recorded some data coming over the

00:12:58.080 --> 00:13:03.060
<v Philip Johnston>radio, stored that in a C array, and then ran it through pieces of my code that were not,

00:13:03.060 --> 00:13:07.340
<v Philip Johnston>you know, that were separated from the driver layer, which talked to the hardware.

00:13:08.400 --> 00:13:12.100
<v Chris Gammell>And this is like, as you're making changes or this is kind of like, well, I guess it would

00:13:12.100 --> 00:13:17.820
<v Chris Gammell>always be as you're making changes, but this is like in a, like a CICD continuous integration

00:13:17.820 --> 00:13:18.060
<v Chris Gammell>pipeline.

00:13:18.620 --> 00:13:22.840
<v Chris Gammell>Or is this just generally like, you're just kind of doing this as a spot check of like, oh,

00:13:23.080 --> 00:13:24.320
<v Chris Gammell>I changed a function.

00:13:24.540 --> 00:13:25.860
<v Chris Gammell>I should probably test this thing.

00:13:25.960 --> 00:13:26.780
<v Chris Gammell>What do I use to test it?

00:13:26.780 --> 00:13:31.580
<v Chris Gammell>I could either send myself a test page or I could go and play back this record, this

00:13:31.580 --> 00:13:35.240
<v Chris Gammell>effective recording, which, which one of those is it or something else?

00:13:35.380 --> 00:13:36.340
<v Philip Johnston>Both actually.

00:13:36.560 --> 00:13:41.020
<v Philip Johnston>I find that first I use it for simplifying my development process.

00:13:41.020 --> 00:13:45.900
<v Philip Johnston>And then once you have it, it becomes easy to just add that as a check to my, my CI process.

00:13:46.560 --> 00:13:50.940
<v Philip Johnston>And I was actually sitting in a class with James Grenning and I was feeling guilty because

00:13:50.940 --> 00:13:53.740
<v Philip Johnston>I knew all of the things he was teaching about TDD.

00:13:53.740 --> 00:13:57.060
<v Philip Johnston>But this project I was working at the time, I hadn't used those techniques.

00:13:57.060 --> 00:14:02.680
<v Philip Johnston>So I had saved some data and some log files that I had recorded prior to going to his class.

00:14:02.680 --> 00:14:06.760
<v Philip Johnston>And I think in a break in that class in 30 minutes, I had, you know, written some tests

00:14:06.760 --> 00:14:11.560
<v Philip Johnston>that using the recorded data and the pieces of the system that I could use without the hardware.

00:14:11.560 --> 00:14:17.180
<v Philip Johnston>And, you know, I had an automated test suite and it was, it was sort of like I had gone weeks

00:14:17.180 --> 00:14:22.100
<v Philip Johnston>where I, you know, I had to be tied to my desk where I had this rack of equipment that

00:14:22.100 --> 00:14:26.720
<v Philip Johnston>was specialized so I could transmit pages to the system sitting on my desk that could receive

00:14:26.720 --> 00:14:27.400
<v Philip Johnston>and decode it.

00:14:27.520 --> 00:14:31.440
<v Philip Johnston>And, you know, if anything went wrong in the software, you have to reset a bunch of equipment

00:14:31.440 --> 00:14:34.240
<v Philip Johnston>and I couldn't work away from my apartment.

00:14:34.360 --> 00:14:36.120
<v Philip Johnston>So that made it quite difficult.

00:14:36.120 --> 00:14:40.280
<v Philip Johnston>And so it really freed me up when I was like, okay, the, the radio piece is solid.

00:14:40.280 --> 00:14:43.960
<v Philip Johnston>It's the piece that's not dependent on the hardware that I'm having difficulty with.

00:14:43.960 --> 00:14:48.220
<v Philip Johnston>And I can move much faster if I don't have to compile the whole system, flash it to the

00:14:48.220 --> 00:14:52.840
<v Philip Johnston>device, reset everything and go, you know, walk over and press buttons to send pages.

00:14:52.840 --> 00:14:57.480
<v Philip Johnston>I could, I could iterate a lot faster once I had this section of my code that I could use

00:14:57.480 --> 00:14:58.160
<v Philip Johnston>without the hardware.

00:14:58.840 --> 00:14:59.040
<v Chris Gammell>Hmm.

00:14:59.260 --> 00:15:00.060
<v Chris Gammell>Yeah, that's great.

00:15:00.120 --> 00:15:00.980
<v Chris Gammell>No, that's, that's really great.

00:15:01.080 --> 00:15:05.220
<v Chris Gammell>I think the, the being able to, I think that's very tangible too, of like being tethered to

00:15:05.220 --> 00:15:10.240
<v Chris Gammell>your desk and being tethered to test equipment and test setups and the finickiness of, you know,

00:15:10.440 --> 00:15:13.580
<v Chris Gammell>not saying that you had a breadboard there, but stuff in my past where I've been like,

00:15:13.640 --> 00:15:15.300
<v Chris Gammell>oh yeah, it's just like a breadboard is for testing.

00:15:15.380 --> 00:15:15.760
<v Chris Gammell>It's fine.

00:15:15.760 --> 00:15:20.080
<v Chris Gammell>And then a wire moves and yeah, it's just not, it's not repeatable.

00:15:20.900 --> 00:15:24.500
<v Chris Gammell>Repeatability being, having more variables in there is bad.

00:15:24.860 --> 00:15:27.780
<v Chris Gammell>Also, I, I feel like we, TDD is test driven development.

00:15:27.780 --> 00:15:28.200
<v Chris Gammell>Is that right?

00:15:28.880 --> 00:15:29.740
<v Chris Gammell>Yes, that's correct.

00:15:30.040 --> 00:15:30.280
<v Chris Gammell>Okay.

00:15:30.640 --> 00:15:32.260
<v Chris Gammell>That's a, a James Grenning thing.

00:15:32.420 --> 00:15:34.700
<v Chris Gammell>I remember reading some of his books about that.

00:15:35.220 --> 00:15:39.280
<v Chris Gammell>Well, you have a really great page on embeddedartistry.com for beginners.

00:15:39.700 --> 00:15:43.120
<v Chris Gammell>And I have that up in front of me, but one of the things that I think about is like,

00:15:43.120 --> 00:15:49.100
<v Chris Gammell>so we were just talking about a very complex system, but you know, so someone, someone who's

00:15:49.100 --> 00:15:54.480
<v Chris Gammell>kind of traditionally been hands-on hardware, they're like, I want to learn more about firmware.

00:15:54.580 --> 00:15:55.940
<v Chris Gammell>I want to get more in depth here.

00:15:56.040 --> 00:15:59.900
<v Chris Gammell>Is this kind of the page where they should be going to and like kind of getting started

00:15:59.900 --> 00:16:05.100
<v Chris Gammell>from, or where do you usually point people when they are looking to become, you know,

00:16:05.100 --> 00:16:06.480
<v Chris Gammell>kind of take the same path that you did?

00:16:06.480 --> 00:16:09.620
<v Philip Johnston>I do recommend that for beginners page.

00:16:09.820 --> 00:16:14.760
<v Philip Johnston>That's sort of my collection of resources that I think are high quality and people would,

00:16:14.800 --> 00:16:16.020
<v Philip Johnston>would benefit from studying.

00:16:16.160 --> 00:16:21.580
<v Philip Johnston>You know, I, I guess one of the challenges is I personally don't really focus on beginners

00:16:21.580 --> 00:16:22.080
<v Philip Johnston>content.

00:16:22.080 --> 00:16:27.940
<v Philip Johnston>I started the website because I found that the challenge for me, especially of the years

00:16:27.940 --> 00:16:34.380
<v Philip Johnston>that gone on is that there's so much beginners and maker focused information out there.

00:16:34.380 --> 00:16:38.480
<v Philip Johnston>But once you get to the intermediate and advanced stages, it's really hard to find content to

00:16:38.480 --> 00:16:40.540
<v Philip Johnston>push your skills further.

00:16:40.780 --> 00:16:42.540
<v Philip Johnston>And so that's really what I've been focusing on.

00:16:42.840 --> 00:16:42.920
<v Philip Johnston>Yeah.

00:16:43.060 --> 00:16:43.300
<v Philip Johnston>Yeah.

00:16:43.320 --> 00:16:48.220
<v Philip Johnston>So I guess, you know, I, I sort of suffer from the, the curse of knowledge of, I don't necessarily

00:16:48.220 --> 00:16:53.240
<v Philip Johnston>remember what it's like to be a beginner and that it makes it hard to answer that question.

00:16:53.420 --> 00:16:53.660
<v Chris Gammell>Okay.

00:16:54.020 --> 00:16:56.640
<v Philip Johnston>I think there are a couple of resources.

00:16:56.760 --> 00:16:58.360
<v Philip Johnston>Some of them are linked on that page.

00:16:58.360 --> 00:17:06.220
<v Philip Johnston>There should be Miro Samix free YouTube series on getting started with embedded development.

00:17:06.820 --> 00:17:10.800
<v Philip Johnston>Embedded FM has a great series of articles on getting started with embedded development.

00:17:11.380 --> 00:17:15.440
<v Philip Johnston>You know, I think there's a, just a vast number of books that can help people get started.

00:17:15.760 --> 00:17:15.840
<v Philip Johnston>Yeah.

00:17:16.060 --> 00:17:20.200
<v Philip Johnston>And where I really aim to, to help fill the gaps is like, you know, most of these books aren't

00:17:20.200 --> 00:17:24.740
<v Philip Johnston>talking about separation of concerns, how to hide implementation details, how to keep your

00:17:24.740 --> 00:17:27.000
<v Philip Johnston>code loosely coupled, how to write code without the hardware.

00:17:27.400 --> 00:17:27.720
<v Chris Gammell>Right.

00:17:27.860 --> 00:17:31.200
<v Philip Johnston>So that, that I think is where I want to step in and focus on the most.

00:17:31.480 --> 00:17:32.840
<v Chris Gammell>And you're saying that is the internet.

00:17:32.940 --> 00:17:33.060
<v Chris Gammell>Yeah.

00:17:33.060 --> 00:17:36.220
<v Chris Gammell>And I guess, you know, what I really think about is myself.

00:17:36.220 --> 00:17:37.400
<v Chris Gammell>I think about myself here, Philip.

00:17:39.220 --> 00:17:42.820
<v Chris Gammell>And I would say, you know, I'm not a true beginner, but like, you know, like I'm not,

00:17:43.080 --> 00:17:44.580
<v Chris Gammell>I am not a full-time firmware developer.

00:17:44.760 --> 00:17:45.940
<v Chris Gammell>You know, I'm doing more firmware.

00:17:46.160 --> 00:17:50.220
<v Chris Gammell>And I feel like that is maybe an inner, you know, maybe beginner to an intermediate space.

00:17:50.220 --> 00:17:53.780
<v Chris Gammell>And I feel like that's kind of the stuff that probably a lot more people listening

00:17:53.780 --> 00:17:55.660
<v Chris Gammell>in the show would be in as well.

00:17:55.840 --> 00:17:56.240
<v Chris Gammell>Right.

00:17:56.300 --> 00:17:59.080
<v Chris Gammell>They've done hacking on dev kit code.

00:17:59.280 --> 00:18:03.520
<v Chris Gammell>They've, you know, and that's really the thing that I think about is like moving from

00:18:03.520 --> 00:18:09.020
<v Chris Gammell>a dev kit to kind of quote unquote, starting from scratch and like really architecting a

00:18:09.020 --> 00:18:09.380
<v Chris Gammell>system.

00:18:09.940 --> 00:18:15.160
<v Chris Gammell>That's where I start to get a little shaky and I'm like, oh, well, you know, I start

00:18:15.160 --> 00:18:17.240
<v Chris Gammell>from a main.c and I know that sort of thing.

00:18:17.240 --> 00:18:21.540
<v Chris Gammell>But if I'm not starting from a dev kit, then what, you know?

00:18:22.320 --> 00:18:22.420
<v Philip Johnston>Yeah.

00:18:22.440 --> 00:18:23.400
<v Philip Johnston>I think that makes sense.

00:18:23.780 --> 00:18:26.180
<v Philip Johnston>It's definitely, it's definitely not easy, right?

00:18:26.180 --> 00:18:27.920
<v Philip Johnston>Starting from the blank canvas.

00:18:28.320 --> 00:18:28.480
<v Chris Gammell>Yeah.

00:18:28.800 --> 00:18:33.180
<v Philip Johnston>And I also think too, I mean, how often are you really starting from a blank canvas versus

00:18:33.180 --> 00:18:38.440
<v Philip Johnston>I have a dev kit and now I have my production board and you're likely using the same set

00:18:38.440 --> 00:18:39.640
<v Philip Johnston>of software to some degree.

00:18:40.180 --> 00:18:40.440
<v Chris Gammell>Sure.

00:18:40.580 --> 00:18:42.440
<v Chris Gammell>So, so maybe, maybe you could walk us through.

00:18:42.560 --> 00:18:43.880
<v Chris Gammell>So you're starting from a dev kit.

00:18:43.960 --> 00:18:45.820
<v Chris Gammell>You, Philip are starting from a dev kit.

00:18:46.360 --> 00:18:48.460
<v Chris Gammell>Then what is your usual next step then?

00:18:48.460 --> 00:18:52.160
<v Chris Gammell>I mean, like if you're pulled in, I know that you're, you know, kind of pulled in more at

00:18:52.160 --> 00:18:56.400
<v Chris Gammell>the advanced stages of a project and you're sometimes parachuting in to help people in

00:18:56.400 --> 00:18:57.700
<v Chris Gammell>a consulting context.

00:18:58.240 --> 00:19:01.860
<v Chris Gammell>But if you were starting from a dev kit and you're like, all right, we need to implement

00:19:01.860 --> 00:19:06.920
<v Chris Gammell>this new chipset or this new sensor or this new, you know, we need to piece together this

00:19:06.920 --> 00:19:07.400
<v Chris Gammell>system.

00:19:07.400 --> 00:19:13.460
<v Chris Gammell>And you have dev kit code, then what, what is, what is the next step in your process

00:19:13.460 --> 00:19:13.740
<v Chris Gammell>there?

00:19:14.440 --> 00:19:20.280
<v Philip Johnston>So I guess I'll step back and just talk about how, you know, if I'm at the dev kit stage,

00:19:20.320 --> 00:19:24.320
<v Philip Johnston>how I would start now, you know, typically we have some idea of what our system needs

00:19:24.320 --> 00:19:24.640
<v Philip Johnston>to do.

00:19:24.660 --> 00:19:28.660
<v Philip Johnston>And I, I just start sketching out notes about that.

00:19:28.940 --> 00:19:33.460
<v Philip Johnston>You know, if I'm writing a driver for a part, often I'll start on my computer before I even

00:19:33.460 --> 00:19:34.440
<v Philip Johnston>move it to the dev kit.

00:19:34.440 --> 00:19:39.700
<v Philip Johnston>And this sort of forces me to think about, okay, if I'm writing code on my computer first

00:19:39.700 --> 00:19:42.220
<v Philip Johnston>and moving it to a dev kit, I'm going to have to change it.

00:19:42.300 --> 00:19:43.640
<v Philip Johnston>So there are things I can't depend on.

00:19:43.720 --> 00:19:46.860
<v Philip Johnston>I can't depend on the OS because the OS is going to be different on the dev kit.

00:19:46.880 --> 00:19:51.060
<v Philip Johnston>If it's even used, you know, interfaces for talking to the hardware are going to be different.

00:19:51.440 --> 00:19:57.260
<v Philip Johnston>And so I start thinking about the different interfaces I need to create, because my goal

00:19:57.260 --> 00:19:59.640
<v Philip Johnston>is I don't want to use somebody else's interface.

00:19:59.640 --> 00:20:05.040
<v Philip Johnston>I want to have my own interface that I can swap out whatever's on the other side of that

00:20:05.040 --> 00:20:05.620
<v Philip Johnston>as needed.

00:20:06.120 --> 00:20:07.620
<v Philip Johnston>And so that's usually where I start.

00:20:08.120 --> 00:20:13.100
<v Philip Johnston>For a sensor driver, I'll actually use like an aardvark high squared C adapter or spy adapter,

00:20:13.480 --> 00:20:18.840
<v Philip Johnston>and I'll make a little interface that sits on top of the aardvark APIs and write my driver

00:20:18.840 --> 00:20:20.720
<v Philip Johnston>to that and test it out against the hardware.

00:20:20.980 --> 00:20:24.700
<v Philip Johnston>You know, I have a little, if I have a sensor on a little development board that I can talk

00:20:24.700 --> 00:20:24.920
<v Philip Johnston>to.

00:20:25.620 --> 00:20:26.420
<v Chris Gammell>What is an aardvark?

00:20:26.600 --> 00:20:27.640
<v Chris Gammell>I've never heard of that actually.

00:20:27.640 --> 00:20:33.020
<v Philip Johnston>It's a USB to I squared C or spy debug adapter.

00:20:33.180 --> 00:20:38.280
<v Philip Johnston>So you can, you can essentially talk I squared C and spy from your computer to an, to a device.

00:20:38.640 --> 00:20:39.400
<v Chris Gammell>Ah, great.

00:20:39.520 --> 00:20:39.680
<v Philip Johnston>Okay.

00:20:39.820 --> 00:20:40.000
<v Philip Johnston>Yeah.

00:20:40.240 --> 00:20:44.880
<v Philip Johnston>So you, you know, very useful development tool, especially if you're working on new parts.

00:20:45.460 --> 00:20:47.960
<v Philip Johnston>And so I have an abstraction, I have a driver.

00:20:48.280 --> 00:20:51.920
<v Philip Johnston>It's now easy for me to move it over to the development kit and run it on real hardware

00:20:51.920 --> 00:20:56.600
<v Philip Johnston>because all I have to do is take that interface I defined, which is custom to my system and what

00:20:56.600 --> 00:21:01.360
<v Philip Johnston>I need to do and implement it using the dev kit SDK code.

00:21:01.360 --> 00:21:06.700
<v Philip Johnston>And so that's generally the process that I follow is I try to identify what I need to

00:21:06.700 --> 00:21:12.200
<v Philip Johnston>do and then put some layer that I control in between where my code is going to live.

00:21:12.200 --> 00:21:15.920
<v Philip Johnston>And then whatever code comes from somebody else or talks to the hardware.

00:21:16.000 --> 00:21:16.760
<v Philip Johnston>Does that make sense?

00:21:17.080 --> 00:21:17.740
<v Chris Gammell>I think so.

00:21:17.820 --> 00:21:22.660
<v Chris Gammell>And so when you say the layer you control, you mean that you're not, not use, you'll actually

00:21:22.660 --> 00:21:25.220
<v Chris Gammell>write a full driver for that sensor.

00:21:25.220 --> 00:21:30.460
<v Philip Johnston>If we're talking about a sensor in the longterm in a production system, I might, you know,

00:21:30.480 --> 00:21:33.940
<v Philip Johnston>it depends on the reliability and the quality of any existing driver.

00:21:34.400 --> 00:21:34.760
<v Chris Gammell>Yeah.

00:21:34.780 --> 00:21:37.440
<v Chris Gammell>Maybe you audit someone else's code and say, yeah, this is good enough.

00:21:37.440 --> 00:21:38.440
<v Chris Gammell>I understand this.

00:21:38.440 --> 00:21:40.780
<v Chris Gammell>And you know, if they give you some kind of example code.

00:21:41.320 --> 00:21:41.700
<v Philip Johnston>Right.

00:21:41.920 --> 00:21:46.220
<v Philip Johnston>And what I want to do is I want to isolate somebody else's code into its own box.

00:21:46.560 --> 00:21:46.960
<v Philip Johnston>Right.

00:21:46.960 --> 00:21:51.840
<v Philip Johnston>So if that can be changed or swapped out as needed and it, it doesn't impact the rest

00:21:51.840 --> 00:21:52.460
<v Philip Johnston>of my system.

00:21:52.820 --> 00:21:58.200
<v Philip Johnston>So yeah, if I was using say somebody's time of flight sensor driver, I might leave their

00:21:58.200 --> 00:22:03.560
<v Philip Johnston>driver as is, and then I might create a time of flight interface that has like a function

00:22:03.560 --> 00:22:09.040
<v Philip Johnston>that starts the device, stops the device, and then reads a value from the device.

00:22:09.040 --> 00:22:14.040
<v Philip Johnston>And then, you know, to implement that interface, I'm going to call the existing driver calls,

00:22:14.040 --> 00:22:16.940
<v Philip Johnston>but my application is going to work with my interface.

00:22:16.940 --> 00:22:19.660
<v Philip Johnston>It's not going to work with the, the driver's calls directly.

00:22:20.120 --> 00:22:22.340
<v Philip Johnston>That way, you know, I can swap it out with a new driver.

00:22:22.440 --> 00:22:24.400
<v Philip Johnston>I can, if the part changes, it's not a big deal.

00:22:24.400 --> 00:22:24.640
<v Philip Johnston>Right.

00:22:24.660 --> 00:22:28.540
<v Philip Johnston>I just have this generic time of flight interface that I'm thinking about.

00:22:28.740 --> 00:22:33.140
<v Philip Johnston>And, you know, when we sort of step back and we think about what our systems are going

00:22:33.140 --> 00:22:37.580
<v Philip Johnston>to be, you know, most of your code doesn't care if you're using one particular time of

00:22:37.580 --> 00:22:41.960
<v Philip Johnston>flight driver versus another, you might have some differences when you're booting up your

00:22:41.960 --> 00:22:42.200
<v Philip Johnston>board.

00:22:42.200 --> 00:22:44.460
<v Philip Johnston>You need to configure one in a different way than another.

00:22:44.460 --> 00:22:49.740
<v Philip Johnston>But if you have a control loop, that's reading a value from a sensor, you know, does it really

00:22:49.740 --> 00:22:51.900
<v Philip Johnston>matter which particular sensor is there?

00:22:52.280 --> 00:22:56.560
<v Philip Johnston>Or does it matter more that you have a common way to interact with that sensor that doesn't

00:22:56.560 --> 00:22:58.300
<v Philip Johnston>change from one part to another?

00:22:58.940 --> 00:23:02.100
<v Philip Johnston>You know, I guess that's the underlying idea there that I try to operate with.

00:23:02.880 --> 00:23:07.580
<v Chris Gammell>And then the starting and stopping and reading a value that sounds kind of POSIX-y, is that

00:23:07.580 --> 00:23:09.380
<v Chris Gammell>kind of your, your go-to for that?

00:23:09.800 --> 00:23:11.040
<v Chris Gammell>Like a POSIX interface?

00:23:11.040 --> 00:23:12.300
<v Philip Johnston>Not personally.

00:23:12.420 --> 00:23:14.620
<v Philip Johnston>I don't particularly like the POSIX interfaces.

00:23:14.860 --> 00:23:15.900
<v Philip Johnston>So no, it's just, yeah.

00:23:16.440 --> 00:23:18.240
<v Philip Johnston>Those were just the examples that came up.

00:23:18.360 --> 00:23:19.640
<v Philip Johnston>I thought it was you who was writing about it.

00:23:20.060 --> 00:23:20.260
<v Chris Gammell>Okay.

00:23:20.300 --> 00:23:20.440
<v Chris Gammell>Yeah.

00:23:20.480 --> 00:23:23.820
<v Chris Gammell>Someone else was maybe talking about it then that I had, I had, uh, I thought that was

00:23:23.820 --> 00:23:25.100
<v Chris Gammell>you, but maybe it's someone else.

00:23:25.480 --> 00:23:25.740
<v Chris Gammell>Yeah.

00:23:26.300 --> 00:23:26.580
<v Chris Gammell>Yeah.

00:23:26.780 --> 00:23:27.000
<v Chris Gammell>Okay.

00:23:27.000 --> 00:23:33.420
<v Philip Johnston>I don't find it to be a natural way of thinking personally for embedded development.

00:23:33.760 --> 00:23:34.200
<v Chris Gammell>Got it.

00:23:34.320 --> 00:23:34.460
<v Chris Gammell>Okay.

00:23:35.020 --> 00:23:39.760
<v Philip Johnston>You know, there's always things missing that like we care about in the POSIX APIs, like

00:23:39.760 --> 00:23:43.880
<v Philip Johnston>thread priorities or, you know, stacks and things like that.

00:23:43.880 --> 00:23:44.120
<v Speaker ?>Yeah.

00:23:44.260 --> 00:23:47.500
<v Chris Gammell>So then you, you mentioned like you're writing this on your computer.

00:23:47.500 --> 00:23:54.220
<v Chris Gammell>So are you writing this then on like an, like a GCC using like an Intel compiler, like as

00:23:54.220 --> 00:23:59.880
<v Chris Gammell>well as x86 compiler, like that kind of local NIS, or is it, are you actually writing like,

00:23:59.980 --> 00:24:01.980
<v Chris Gammell>how are you interfacing it?

00:24:01.980 --> 00:24:05.300
<v Chris Gammell>Cause that's one of the things that I was always confused about at first was like the

00:24:05.300 --> 00:24:11.020
<v Chris Gammell>fact that, you know, compiling for device compiling on your computer and then how portability

00:24:11.020 --> 00:24:17.540
<v Chris Gammell>happens when not portability, how you can kind of transfer that code between different places.

00:24:18.320 --> 00:24:22.020
<v Chris Gammell>So are you writing it using an x86 compiler then, or does it not matter?

00:24:22.880 --> 00:24:27.780
<v Philip Johnston>Yeah, I'm, I'm writing it using an x86 compiler just because my, my Mac book is an x86.

00:24:27.780 --> 00:24:34.080
<v Philip Johnston>And in fact, I might even be writing a lot of the code using Apple clang.

00:24:34.220 --> 00:24:38.500
<v Philip Johnston>And then, you know, it gets cross compiled eventually for, um, arm GCC.

00:24:39.000 --> 00:24:44.820
<v Philip Johnston>And I think, you know, it's just, again, it's a forcing function because I know that my software

00:24:44.820 --> 00:24:47.440
<v Philip Johnston>is going to be running in a different place eventually.

00:24:47.440 --> 00:24:52.840
<v Philip Johnston>And so it forces me to think about all the things that I can't make an assumption about

00:24:52.840 --> 00:24:53.720
<v Philip Johnston>because of that.

00:24:54.160 --> 00:24:54.600
<v Chris Gammell>Yep.

00:24:54.700 --> 00:24:55.140
<v Chris Gammell>That's good.

00:24:55.300 --> 00:24:55.420
<v Chris Gammell>Yeah.

00:24:55.420 --> 00:24:56.940
<v Chris Gammell>I think that's, that really came.

00:24:56.940 --> 00:25:00.060
<v Chris Gammell>I think this is something we'll talk about a little bit later, but that came back to

00:25:00.060 --> 00:25:00.220
<v Chris Gammell>me.

00:25:00.340 --> 00:25:04.540
<v Chris Gammell>I just remember thinking when you, when you get to the stage of like your testing stuff

00:25:04.540 --> 00:25:04.960
<v Chris Gammell>individually.

00:25:04.960 --> 00:25:06.900
<v Chris Gammell>And I think this is when Akbar was on the show.

00:25:07.000 --> 00:25:11.360
<v Chris Gammell>We were talking about like testing and logger data does kind of like remote testing and

00:25:11.360 --> 00:25:12.000
<v Chris Gammell>stuff like that.

00:25:12.420 --> 00:25:19.100
<v Chris Gammell>And I couldn't wrap my head around like, well, how is your code then pushing down to a device?

00:25:19.100 --> 00:25:24.740
<v Chris Gammell>So if you're running like the same set of C, but it's the fact that it's an x86 compiler

00:25:24.740 --> 00:25:27.260
<v Chris Gammell>and then you just run it on a different compiler somewhere else.

00:25:27.260 --> 00:25:30.160
<v Chris Gammell>And then that's like the tests are just completely separate.

00:25:30.160 --> 00:25:34.400
<v Chris Gammell>I know I'm not quite making sense yet, but I was very confused at the time and I've started

00:25:34.400 --> 00:25:38.160
<v Chris Gammell>to get there and hopefully I will continue to improve that.

00:25:39.160 --> 00:25:39.660
<v Philip Johnston>Yeah.

00:25:39.720 --> 00:25:45.420
<v Philip Johnston>I mean, it does mean that some of your tests are separate, you know, like my, I have an

00:25:45.420 --> 00:25:52.820
<v Philip Johnston>automated set of, I have an automated set of tests that will typically run only on my

00:25:52.820 --> 00:25:53.700
<v Philip Johnston>development machine.

00:25:53.700 --> 00:25:58.940
<v Philip Johnston>I mean, it's, it's not cross compiled, you know, those, that program is just compiled

00:25:58.940 --> 00:26:05.900
<v Philip Johnston>for x86, but often I'll also have a test program, especially in the example of logger,

00:26:06.020 --> 00:26:07.680
<v Philip Johnston>you know, their tests run on the hardware.

00:26:07.860 --> 00:26:12.740
<v Philip Johnston>So I often do, if possible, run the same set of tests on the hardware, just as a good cross

00:26:12.740 --> 00:26:13.020
<v Philip Johnston>check.

00:26:13.020 --> 00:26:14.860
<v Philip Johnston>Like did my porting succeed?

00:26:15.000 --> 00:26:17.600
<v Philip Johnston>There's always problems that could come up during that process.

00:26:17.760 --> 00:26:17.900
<v Chris Gammell>Yeah.

00:26:18.100 --> 00:26:18.280
<v Chris Gammell>Yeah.

00:26:18.440 --> 00:26:20.940
<v Philip Johnston>There's things that are just easier to test on the hardware.

00:26:20.940 --> 00:26:23.940
<v Philip Johnston>And maybe I want to test integrated subsystems.

00:26:24.180 --> 00:26:26.480
<v Philip Johnston>Maybe I want to test the system as a whole.

00:26:26.840 --> 00:26:29.680
<v Philip Johnston>You know, there, there are always reasons to test on the hardware as well.

00:26:30.020 --> 00:26:30.420
<v Chris Gammell>Yeah.

00:26:30.620 --> 00:26:34.620
<v Philip Johnston>It just is slower to, and you can't iterate as quickly, I think.

00:26:34.620 --> 00:26:37.500
<v Philip Johnston>And more tools are available to you on your development machine.

00:26:37.660 --> 00:26:38.580
<v Philip Johnston>Things go wrong too.

00:26:39.280 --> 00:26:39.400
<v Chris Gammell>Yeah.

00:26:39.680 --> 00:26:39.860
<v Chris Gammell>Yeah.

00:26:39.860 --> 00:26:45.200
<v Chris Gammell>And it feels like as you get closer to production, you need to run a little bit closer to the

00:26:45.200 --> 00:26:46.060
<v Chris Gammell>real hardware as well.

00:26:46.060 --> 00:26:46.300
<v Chris Gammell>Right.

00:26:46.340 --> 00:26:50.280
<v Chris Gammell>You're talking about iterating on a sensor and just kind of like trying all these functions

00:26:50.280 --> 00:26:52.620
<v Chris Gammell>and interfacing with and seeing how it works.

00:26:52.980 --> 00:26:57.160
<v Chris Gammell>But then as you move towards like actually having a sensor that's actually talking to

00:26:57.160 --> 00:27:01.280
<v Chris Gammell>a microcontroller and you're cross compiling down to that microcontroller, that would maybe

00:27:01.280 --> 00:27:05.340
<v Chris Gammell>have additional tests that are implemented in the system as well.

00:27:05.900 --> 00:27:06.460
<v Philip Johnston>I think so.

00:27:06.460 --> 00:27:10.540
<v Philip Johnston>And I mean, I think there are other really important details that you need to check as part

00:27:10.540 --> 00:27:12.400
<v Philip Johnston>of a CI process for firmware.

00:27:12.400 --> 00:27:18.440
<v Philip Johnston>I mean, I can't tell you the number of times that we realized, oh man, somewhere along the

00:27:18.440 --> 00:27:21.100
<v Philip Johnston>way, it used to take us half a second to boot our system.

00:27:21.100 --> 00:27:24.320
<v Philip Johnston>And now it takes us five seconds and we have no idea where that happens.

00:27:24.320 --> 00:27:27.500
<v Philip Johnston>So then you're going build by build to try to figure out where the change occurred.

00:27:27.740 --> 00:27:32.860
<v Philip Johnston>You know, you could be every time you release a new build, it splashed to the hardware and

00:27:32.860 --> 00:27:36.240
<v Philip Johnston>you run some code to measure and report how long it took to boot the system.

00:27:36.240 --> 00:27:41.860
<v Philip Johnston>You might want to check baseline power consumption, like make sure that I didn't make some change

00:27:41.860 --> 00:27:46.500
<v Philip Johnston>that, you know, in a specific power state, I'm now running with, I'm drawing twice as

00:27:46.500 --> 00:27:47.640
<v Philip Johnston>much current as I'm expecting.

00:27:47.800 --> 00:27:52.180
<v Philip Johnston>You know, that's a big bummer to find out right before you want to ship a product and you have

00:27:52.180 --> 00:27:55.140
<v Philip Johnston>no idea what happened or, you know, it's like, oh.

00:27:55.140 --> 00:27:56.760
<v Chris Gammell>We have extra batteries we could ship with the product.

00:27:56.880 --> 00:27:57.620
<v Chris Gammell>That would be really helpful.

00:27:58.160 --> 00:27:58.380
<v Philip Johnston>Yeah.

00:27:58.540 --> 00:28:03.740
<v Philip Johnston>I mean, these are real situations I've been in too, where it's like, man, do we really have

00:28:03.740 --> 00:28:07.840
<v Philip Johnston>to delay the release because our battery life is one quarter of what we say it's going to

00:28:07.840 --> 00:28:10.080
<v Philip Johnston>be, you know, it's not fun.

00:28:10.180 --> 00:28:15.340
<v Philip Johnston>And so it's, I think it's better to like measure that kind of stuff on a regular cadence and,

00:28:15.340 --> 00:28:19.400
<v Philip Johnston>you know, make sure you're actually looking at it rather than being surprised later down

00:28:19.400 --> 00:28:19.760
<v Philip Johnston>the line.

00:28:20.460 --> 00:28:24.600
<v Chris Gammell>So one thing that I've learned as I've moved into consulting is like, especially when like

00:28:24.600 --> 00:28:30.500
<v Chris Gammell>I'm expected to do more of the, the chain is like, there's no one checking your work.

00:28:30.580 --> 00:28:31.940
<v Chris Gammell>You have to check your own work.

00:28:31.940 --> 00:28:35.220
<v Chris Gammell>Like Chris, you got to go and check all the current, you have to do all that.

00:28:35.220 --> 00:28:39.460
<v Chris Gammell>And it's just like, yeah, I mean, this is like, you're basically building your own guardrails.

00:28:39.560 --> 00:28:43.540
<v Chris Gammell>It feels like, and all of this stuff is like, you're the test that you're setting up is kind

00:28:43.540 --> 00:28:48.840
<v Chris Gammell>of a kindness that you're doing for your future self and almost like an insurance policy for

00:28:48.840 --> 00:28:49.580
<v Chris Gammell>your future self.

00:28:49.680 --> 00:28:55.240
<v Chris Gammell>And it's just like, because there's, there is no, I don't work at Bell labs that has, you

00:28:55.240 --> 00:28:58.700
<v Chris Gammell>know, of, of yesteryear with 20,000 engineers where people are going to check your work.

00:28:58.700 --> 00:29:00.660
<v Chris Gammell>It's just that the work's the work.

00:29:00.720 --> 00:29:03.800
<v Chris Gammell>And if it, you know, if it, if it's doing what people expect, that's fine.

00:29:03.800 --> 00:29:08.840
<v Chris Gammell>But if there's some kind of like hidden problem there, no, you know, audit engineer is going

00:29:08.840 --> 00:29:09.760
<v Chris Gammell>to go and find it for me.

00:29:09.840 --> 00:29:14.060
<v Chris Gammell>I have to either set up tests myself or have some other kind of guardrails in there.

00:29:14.620 --> 00:29:18.040
<v Philip Johnston>I really think you nailed the case for having tests.

00:29:18.040 --> 00:29:23.020
<v Philip Johnston>It's like thinking about correctness is one way to put it, but I just find that doesn't

00:29:23.020 --> 00:29:23.600
<v Philip Johnston>really resonate.

00:29:23.600 --> 00:29:27.140
<v Philip Johnston>But, you know, something that really does keep me up at night is getting that emergency

00:29:27.140 --> 00:29:31.920
<v Philip Johnston>phone call from a past client talking about how I did something that ruined their system

00:29:31.920 --> 00:29:33.600
<v Philip Johnston>and cost them millions of dollars.

00:29:33.980 --> 00:29:36.700
<v Chris Gammell>You know, we are going to need the number of your lawyer, Philip.

00:29:37.140 --> 00:29:37.460
<v Chris Gammell>Right.

00:29:37.680 --> 00:29:40.080
<v Chris Gammell>And there's a reason I carry insurance policy.

00:29:40.280 --> 00:29:40.420
<v Chris Gammell>Yeah.

00:29:40.500 --> 00:29:40.780
<v Chris Gammell>Right.

00:29:41.460 --> 00:29:43.220
<v Chris Gammell>Errors and emissions insurance, folks.

00:29:43.280 --> 00:29:47.140
<v Chris Gammell>It's a thing that is not cheap, especially for software.

00:29:47.140 --> 00:29:48.200
<v Chris Gammell>Oh, yeah.

00:29:48.340 --> 00:29:48.820
<v Chris Gammell>Oh, interesting.

00:29:49.280 --> 00:29:54.860
<v Chris Gammell>Is that is it a different is a different area of they like make you carry more or it

00:29:54.860 --> 00:29:55.280
<v Chris Gammell>costs more?

00:29:55.660 --> 00:29:58.200
<v Philip Johnston>It costs more and a lot of things aren't covered.

00:29:58.320 --> 00:30:02.260
<v Philip Johnston>There's a lot of exclusions if they find out you're writing software that they won't

00:30:02.260 --> 00:30:06.840
<v Philip Johnston>warrant you against specific failures or, you know, there's different cost limits, things

00:30:06.840 --> 00:30:07.280
<v Philip Johnston>like that.

00:30:07.580 --> 00:30:07.780
<v Chris Gammell>Yep.

00:30:08.000 --> 00:30:08.480
<v Chris Gammell>Yeah, totally.

00:30:08.760 --> 00:30:12.520
<v Chris Gammell>It's yeah, it's a it's a it's a strange world out there.

00:30:13.020 --> 00:30:13.960
<v Chris Gammell>I'd love to talk more.

00:30:13.960 --> 00:30:18.900
<v Chris Gammell>So I've definitely mentioned continuous integration and a little bit of continuous deployment on

00:30:18.900 --> 00:30:23.920
<v Chris Gammell>the show before said from a novice's standpoint, mostly from seeing other people implementing.

00:30:24.340 --> 00:30:27.800
<v Chris Gammell>Could you talk a little bit about how, you know, we've just been talking about guardrails

00:30:27.800 --> 00:30:29.020
<v Chris Gammell>and testing and stuff like that.

00:30:29.300 --> 00:30:31.880
<v Chris Gammell>So what does that actually look like on a system that you set up?

00:30:32.200 --> 00:30:33.300
<v Chris Gammell>Is it all homespun?

00:30:33.380 --> 00:30:34.500
<v Chris Gammell>Are you using some kind of system?

00:30:34.980 --> 00:30:36.240
<v Chris Gammell>Is it like a Jenkins?

00:30:36.420 --> 00:30:38.760
<v Chris Gammell>I've seen Jenkins before and stuff like that.

00:30:38.760 --> 00:30:43.140
<v Chris Gammell>Like what is what does it look like when you have a full system tests suite set up?

00:30:43.800 --> 00:30:49.900
<v Philip Johnston>So at this point, I have my own internal, I guess, infrastructure that I start every project

00:30:49.900 --> 00:30:50.180
<v Philip Johnston>with.

00:30:50.240 --> 00:30:53.280
<v Philip Johnston>And it's just because I've been doing this for 10 years now.

00:30:53.400 --> 00:30:56.800
<v Philip Johnston>So, you know, I've been slowly building up my capabilities.

00:30:57.220 --> 00:30:57.280
<v Philip Johnston>Yeah.

00:30:57.280 --> 00:30:58.160
<v Philip Johnston>I use Jenkins.

00:30:58.160 --> 00:31:04.080
<v Philip Johnston>When I started using Jenkins, it was just the easiest way to have a runner that could

00:31:04.080 --> 00:31:06.140
<v Philip Johnston>talk to the hardware devices.

00:31:06.440 --> 00:31:09.900
<v Philip Johnston>Nowadays, I think most of the CI systems have solved this problem.

00:31:10.040 --> 00:31:12.740
<v Philip Johnston>So I'm not saying that, you know, Jenkins is necessarily the way to go.

00:31:13.120 --> 00:31:16.180
<v Philip Johnston>GitHub Action, CircleCI, Travis, they're all suitable.

00:31:16.180 --> 00:31:23.180
<v Philip Johnston>So for my own process, and often because I'm working alone, I need to have checks against

00:31:23.180 --> 00:31:25.960
<v Philip Johnston>myself to make sure that I'm personally not cutting corners.

00:31:26.600 --> 00:31:33.940
<v Philip Johnston>So I have, you know, every time I open a PR pull request on GitHub, if I'm using that kind

00:31:33.940 --> 00:31:41.060
<v Philip Johnston>of process flow, or if I make a commit to the main branch of the project, my full CI suite

00:31:41.060 --> 00:31:44.940
<v Philip Johnston>runs and it detects that automatically I don't have to do anything to make that happen.

00:31:45.120 --> 00:31:45.640
<v Chris Gammell>Yeah.

00:31:45.640 --> 00:31:48.500
<v Philip Johnston>And that will build the project.

00:31:48.680 --> 00:31:50.960
<v Philip Johnston>It will make sure that there are no warnings.

00:31:51.240 --> 00:31:54.600
<v Philip Johnston>I have a pretty strict warning policy on all of my projects.

00:31:54.600 --> 00:31:59.640
<v Philip Johnston>And so a new warning cropping up indicates a problem that I need to fix and I can't merge

00:31:59.640 --> 00:31:59.740
<v Philip Johnston>it.

00:31:59.880 --> 00:32:00.660
<v Chris Gammell>That's a, that's a fail.

00:32:00.760 --> 00:32:02.160
<v Chris Gammell>Like it won't, it won't move forward.

00:32:02.360 --> 00:32:02.500
<v Chris Gammell>Yeah.

00:32:02.600 --> 00:32:02.780
<v Philip Johnston>Yep.

00:32:03.340 --> 00:32:07.740
<v Philip Johnston>And I don't use W error to make it fail compilation on warnings.

00:32:07.740 --> 00:32:09.820
<v Philip Johnston>Cause I want to see all the warnings and fix them at once.

00:32:10.120 --> 00:32:11.600
<v Philip Johnston>That's generally my logic there.

00:32:11.980 --> 00:32:13.840
<v Philip Johnston>So the build will run.

00:32:13.840 --> 00:32:15.960
<v Philip Johnston>My automated test suite will run.

00:32:15.960 --> 00:32:22.980
<v Philip Johnston>I'll usually run multiple static analysis programs, CPP check, some complexity analysis

00:32:22.980 --> 00:32:23.740
<v Philip Johnston>tools.

00:32:23.880 --> 00:32:28.900
<v Philip Johnston>Cling tidy is another one I'll use to find potential problems in the code.

00:32:28.900 --> 00:32:33.360
<v Philip Johnston>And often those, those have already been tuned for my project based on what I care about.

00:32:33.360 --> 00:32:37.300
<v Philip Johnston>So I'm not getting hundreds of false problems reported.

00:32:38.260 --> 00:32:39.220
<v Philip Johnston>Same thing though.

00:32:39.220 --> 00:32:44.640
<v Philip Johnston>If there's either any new ones or maybe more than a certain threshold, the build is blocked

00:32:44.640 --> 00:32:46.320
<v Philip Johnston>and I, I have to go and fix that.

00:32:46.480 --> 00:32:50.940
<v Philip Johnston>I run formatting checks to make sure the code has just been run through an auto formatting

00:32:50.940 --> 00:32:51.940
<v Philip Johnston>routine.

00:32:52.080 --> 00:32:54.380
<v Philip Johnston>So there's nobody's debating about style.

00:32:54.780 --> 00:32:59.000
<v Philip Johnston>And then if I have hardware in the loop stuff, the build gets flashed to the device.

00:32:59.200 --> 00:33:04.480
<v Philip Johnston>You know, if I have an over the air update protocol, I'll usually do a USB flashing and then an over

00:33:04.480 --> 00:33:06.300
<v Philip Johnston>the update over the air update.

00:33:06.300 --> 00:33:12.560
<v Philip Johnston>So you test both update paths, run any hardware tests that need to be run, collect these metrics.

00:33:12.560 --> 00:33:14.440
<v Philip Johnston>They all get reported back to the server.

00:33:14.580 --> 00:33:19.140
<v Philip Johnston>And then the status gets reported to, in my case, usually GitHub on whether or not that

00:33:19.140 --> 00:33:20.320
<v Philip Johnston>was a good or bad commit.

00:33:20.820 --> 00:33:25.020
<v Philip Johnston>And so for myself working solo, I have a bunch of status checks in place.

00:33:25.020 --> 00:33:29.040
<v Philip Johnston>So I can't merge a change in even if any of these fail.

00:33:29.500 --> 00:33:33.960
<v Philip Johnston>And, you know, 12 years in, you'd think that you stop making simple, trivial mistakes,

00:33:33.960 --> 00:33:34.940
<v Philip Johnston>but that's not true.

00:33:35.020 --> 00:33:39.340
<v Philip Johnston>And I've catched so many problems where it's like, oh, I did forget to run this one test

00:33:39.340 --> 00:33:40.660
<v Philip Johnston>and turns out that test failed.

00:33:41.020 --> 00:33:41.140
<v Chris Gammell>Yep.

00:33:41.640 --> 00:33:46.580
<v Philip Johnston>Any number of other things that pop up that I'm just a, I'm a human and I can't remember

00:33:46.580 --> 00:33:51.480
<v Philip Johnston>to run all of these steps manually every single time I'm making a code change and, you know,

00:33:51.500 --> 00:33:53.000
<v Philip Johnston>I want to work fast and get it done.

00:33:53.180 --> 00:33:55.060
<v Philip Johnston>So having those guardrails really helps.

00:33:55.680 --> 00:33:56.860
<v Chris Gammell>Yeah, no, that's awesome.

00:33:56.960 --> 00:34:00.300
<v Chris Gammell>And then, so you said when you did the hardware in the loop stuff as well, is that when you'll

00:34:00.300 --> 00:34:02.600
<v Chris Gammell>do like a power-based test as well?

00:34:02.600 --> 00:34:04.500
<v Chris Gammell>Like a current consumption or similar?

00:34:04.980 --> 00:34:05.100
<v Philip Johnston>Yeah.

00:34:05.140 --> 00:34:08.000
<v Philip Johnston>If I have that set up and that might, you know, there are different ways of doing that.

00:34:08.080 --> 00:34:13.880
<v Philip Johnston>You might have a DMM that you're controlling that is hooked up to a system or other ways

00:34:13.880 --> 00:34:17.560
<v Philip Johnston>I've done it, or like you have a fuel gauge on the device and you're just taking a simple,

00:34:17.700 --> 00:34:21.440
<v Philip Johnston>you know, current measurement from the fuel gauge in different states.

00:34:21.600 --> 00:34:26.260
<v Philip Johnston>Obviously not as, as good, especially if you're working on really low power stuff, but it,

00:34:26.360 --> 00:34:28.060
<v Philip Johnston>you know, gets the job done in some cases.

00:34:28.440 --> 00:34:28.840
<v Chris Gammell>Yeah.

00:34:28.980 --> 00:34:29.700
<v Chris Gammell>That's really cool.

00:34:29.700 --> 00:34:36.820
<v Chris Gammell>I mean, so now I want to dig into that some more, but when would you say people should

00:34:36.820 --> 00:34:38.200
<v Chris Gammell>start doing that?

00:34:38.940 --> 00:34:45.600
<v Chris Gammell>Like not necessarily when in a, like a professional project, but when in a kind of ramping up to

00:34:45.600 --> 00:34:50.780
<v Chris Gammell>intermediate advance, when should they start doing a CI pipeline like that?

00:34:50.780 --> 00:34:50.820
<v Chris Gammell>Yeah.

00:34:51.260 --> 00:34:56.100
<v Philip Johnston>So I guess my default answer is I want to begin every project that way.

00:34:56.220 --> 00:35:03.240
<v Philip Johnston>So pretty early on now, stepping back from that, you know, that answer, I think that in

00:35:03.240 --> 00:35:09.280
<v Philip Johnston>order to get a good CI process in place, you really need to be able to build your software

00:35:09.280 --> 00:35:11.340
<v Philip Johnston>from the command line.

00:35:11.340 --> 00:35:16.560
<v Philip Johnston>And that rules out pure product builds in an IDE.

00:35:16.820 --> 00:35:18.660
<v Philip Johnston>Not that there's anything wrong with an IDE.

00:35:19.400 --> 00:35:21.280
<v Philip Johnston>I think working in an IDE is great.

00:35:21.380 --> 00:35:25.060
<v Philip Johnston>I think it provides all sorts of tools that make the development and experience better,

00:35:25.060 --> 00:35:29.840
<v Philip Johnston>but you also need to be able to build your software from the command line using make or

00:35:29.840 --> 00:35:34.420
<v Philip Johnston>CMake or Maison, any of the other build systems that you can think of.

00:35:34.420 --> 00:35:38.020
<v Philip Johnston>It doesn't really matter which, but the important thing is being able to do it because once you

00:35:38.020 --> 00:35:43.460
<v Philip Johnston>can do that, now you have a repeatable process that you can run, you know, from a automated

00:35:43.460 --> 00:35:47.460
<v Philip Johnston>system that you don't necessarily control or look at all the time.

00:35:47.640 --> 00:35:51.920
<v Philip Johnston>You're not having to manually press a button to build and run tests and things like that.

00:35:52.640 --> 00:35:53.240
<v Chris Gammell>Yeah, no, that's great.

00:35:53.300 --> 00:35:57.900
<v Chris Gammell>I think that's a, that is a discrete skill that someone who's like, I want to up my game.

00:35:58.040 --> 00:36:02.800
<v Chris Gammell>It's like, okay, well go and investigate how to build from the command line, understand

00:36:02.800 --> 00:36:08.620
<v Chris Gammell>how that looks, maybe what it looks like in a, on a Windows system, on a WSL or, you know,

00:36:08.640 --> 00:36:10.260
<v Chris Gammell>a Linux system in a Windows system.

00:36:10.520 --> 00:36:13.920
<v Chris Gammell>I feel like that's another thing too, is like people coming from the Windows space are used

00:36:13.920 --> 00:36:16.980
<v Chris Gammell>to IDEs, you know, are used to kind of the builds happening under the hood.

00:36:17.480 --> 00:36:20.540
<v Chris Gammell>And then it's like, oh, but there actually is all this stuff happening.

00:36:20.700 --> 00:36:22.060
<v Chris Gammell>And then, so it's kind of like a shift.

00:36:22.200 --> 00:36:25.580
<v Chris Gammell>It's not like you have to use Linux or anything like that, but it's, you have to kind of change

00:36:25.580 --> 00:36:28.820
<v Chris Gammell>your mindset around like where all this stuff's happening.

00:36:29.200 --> 00:36:31.220
<v Philip Johnston>I think exactly right.

00:36:31.220 --> 00:36:34.700
<v Philip Johnston>And, you know, you reminded me of something that I haven't thought of in a long time,

00:36:34.700 --> 00:36:40.720
<v Philip Johnston>which was how much my Windows development was tied to IDEs because getting stuff compiled

00:36:40.720 --> 00:36:43.060
<v Philip Johnston>on a command line with Windows used to be a pain.

00:36:43.300 --> 00:36:46.580
<v Philip Johnston>WSL made it a lot better actually to work on Windows.

00:36:46.940 --> 00:36:47.360
<v Chris Gammell>Yeah.

00:36:47.580 --> 00:36:51.260
<v Chris Gammell>And there was weirdness with like WSL versus WSL2 and stuff like that.

00:36:51.260 --> 00:36:56.540
<v Chris Gammell>But like, even, even with all the weirdness, like Windows has made very, very nice strides

00:36:56.540 --> 00:36:59.360
<v Chris Gammell>and I'm appreciative that they're, they're moving in that direction.

00:36:59.360 --> 00:37:00.240
<v Chris Gammell>So it's, it's good.

00:37:00.600 --> 00:37:05.180
<v Chris Gammell>I mean, so then you had mentioned using an IDE and, and things like that.

00:37:05.340 --> 00:37:11.800
<v Chris Gammell>Are you using an IDE on any, on a daily basis or is it kind of all discreetly tooled using

00:37:11.800 --> 00:37:13.300
<v Chris Gammell>command line tools and otherwise?

00:37:14.300 --> 00:37:15.700
<v Philip Johnston>I personally use Sublime Text.

00:37:16.040 --> 00:37:21.340
<v Philip Johnston>I just have most things in that environment set up to where I can, you know, I can launch

00:37:21.340 --> 00:37:26.880
<v Philip Johnston>GDE from Sublime Text and I can build my project from there and have a bunch of plugins that

00:37:26.880 --> 00:37:29.260
<v Philip Johnston>help me.

00:37:29.260 --> 00:37:34.620
<v Philip Johnston>So that, that's sort of like my IDE light, you know, I, I do, I guess, come from the

00:37:34.620 --> 00:37:37.320
<v Philip Johnston>time where I didn't like any of the IDEs available.

00:37:37.320 --> 00:37:40.680
<v Philip Johnston>So I, I am personally predisposed to the command line tools.

00:37:41.260 --> 00:37:41.400
<v Chris Gammell>Yeah.

00:37:42.060 --> 00:37:42.280
<v Philip Johnston>Okay.

00:37:42.640 --> 00:37:42.980
<v Chris Gammell>Yeah.

00:37:43.000 --> 00:37:47.120
<v Chris Gammell>I mean, and like there are, there's going to be a thousand flavors of what people prefer

00:37:47.120 --> 00:37:50.620
<v Chris Gammell>and like, and whatever, but it like, like you would, I mean, like we've discussed, I

00:37:50.620 --> 00:37:54.540
<v Chris Gammell>mean, it's just like, this is something that's going to help people move into like a more

00:37:54.540 --> 00:37:56.540
<v Chris Gammell>tool driven kind of checks.

00:37:56.700 --> 00:38:00.800
<v Chris Gammell>I think the thing that I think about is when you talk about IDEs versus like a, a, what

00:38:00.800 --> 00:38:04.440
<v Chris Gammell>you were describing your, your build pipeline doing, it's like, I just remember of like,

00:38:04.780 --> 00:38:05.660
<v Chris Gammell>oh, I make a change.

00:38:05.840 --> 00:38:06.800
<v Chris Gammell>You know, I click a button.

00:38:06.880 --> 00:38:08.220
<v Chris Gammell>It does its build downloads.

00:38:08.320 --> 00:38:09.320
<v Chris Gammell>I'm in debug mode.

00:38:09.320 --> 00:38:10.440
<v Chris Gammell>I wait for the break point.

00:38:10.440 --> 00:38:13.940
<v Chris Gammell>And then I, you know, I, and obviously this is a debug thing versus otherwise, but like

00:38:13.940 --> 00:38:17.980
<v Chris Gammell>just that debug loop and just thinking about doing that over and over and over again, and

00:38:17.980 --> 00:38:19.120
<v Chris Gammell>the steps that I might miss.

00:38:19.280 --> 00:38:25.120
<v Chris Gammell>And it's like, you're talking about doing that now in an automated way, maybe not, you're

00:38:25.120 --> 00:38:29.240
<v Chris Gammell>not debugging, but you're checking all the different things that are happening throughout

00:38:29.240 --> 00:38:34.080
<v Chris Gammell>the process without me being there and without me having to see, oh, that led blinked again.

00:38:34.820 --> 00:38:35.340
<v Philip Johnston>Yeah, absolutely.

00:38:35.340 --> 00:38:40.800
<v Philip Johnston>And I think, you know, when we think about how the pressure on software teams or embedded

00:38:40.800 --> 00:38:45.260
<v Philip Johnston>teams in general is increasing because our projects are more complex and we're making

00:38:45.260 --> 00:38:50.080
<v Philip Johnston>them with fewer people occasionally, even as individuals, and we're operating on compressed

00:38:50.080 --> 00:38:55.140
<v Philip Johnston>schedules and we're expected to do at lower cost, you know, having these kinds of automated

00:38:55.140 --> 00:38:59.400
<v Philip Johnston>systems in place is how you can really leverage yourself, right?

00:38:59.440 --> 00:39:04.520
<v Philip Johnston>So you're working on the high value activities and, and a system is helping you work on the low

00:39:04.520 --> 00:39:09.000
<v Philip Johnston>value repeated tasks that can be run every single time in a fraction of the time it's

00:39:09.000 --> 00:39:09.640
<v Philip Johnston>going to take you.

00:39:10.040 --> 00:39:12.480
<v Philip Johnston>And, you know, you're also focusing on the longterm.

00:39:12.600 --> 00:39:14.740
<v Philip Johnston>You have these guardrails for the lifetime of your product.

00:39:14.820 --> 00:39:19.820
<v Philip Johnston>It's not just, you know, like you're, you never have to run those tests just once, right?

00:39:19.860 --> 00:39:24.580
<v Philip Johnston>You're going to be, you should run these tests for every single build, right?

00:39:24.600 --> 00:39:26.640
<v Philip Johnston>To make sure that your changes didn't break anything.

00:39:26.640 --> 00:39:29.180
<v Philip Johnston>And in a manual process, that's just not going to happen.

00:39:29.240 --> 00:39:29.900
<v Philip Johnston>It's not feasible.

00:39:30.100 --> 00:39:31.920
<v Philip Johnston>You forget, you don't have the time.

00:39:31.920 --> 00:39:34.000
<v Philip Johnston>You don't think that something's important to check.

00:39:34.720 --> 00:39:34.780
<v Philip Johnston>Yeah.

00:39:34.860 --> 00:39:37.880
<v Chris Gammell>I feel like there's like also the built-in intern test as well, right?

00:39:37.880 --> 00:39:42.860
<v Chris Gammell>Where it's like, okay, you hand your code to an intern and they make a change good, bad,

00:39:42.940 --> 00:39:43.920
<v Chris Gammell>indifferent, doesn't really matter.

00:39:44.120 --> 00:39:49.640
<v Chris Gammell>They push a commit and it's like, can that code make it down to your device?

00:39:49.760 --> 00:39:52.220
<v Chris Gammell>And with a pipeline, if it's bad code, no.

00:39:52.440 --> 00:39:54.100
<v Chris Gammell>And if it's good code, yes.

00:39:54.180 --> 00:39:55.540
<v Chris Gammell>And then there is a set of criteria.

00:39:55.540 --> 00:40:00.420
<v Chris Gammell>I feel like it's like, and if, you know, a more tangible example here is, is Chris allowed

00:40:00.420 --> 00:40:03.680
<v Chris Gammell>to push code to a Node.js repo?

00:40:04.340 --> 00:40:08.620
<v Chris Gammell>Because I was doing this for a documentation thing for one of my clients and they had a,

00:40:08.720 --> 00:40:12.080
<v Chris Gammell>you know, this whole pipeline set up and it's really, it's just cool.

00:40:12.200 --> 00:40:16.720
<v Chris Gammell>I feel like, you know, like the software people are just, they're just in this mindset and

00:40:16.720 --> 00:40:18.600
<v Chris Gammell>I wasn't allowed to push the code.

00:40:18.640 --> 00:40:19.040
<v Chris Gammell>It was great.

00:40:19.120 --> 00:40:20.980
<v Chris Gammell>I mean, it was just kept telling me like, nope, this is broken.

00:40:21.160 --> 00:40:21.340
<v Chris Gammell>Nope.

00:40:21.340 --> 00:40:21.900
<v Chris Gammell>This is broken.

00:40:22.040 --> 00:40:26.920
<v Chris Gammell>And I would have just happily just said, yeah, push, push to the, push to the master

00:40:26.920 --> 00:40:28.180
<v Chris Gammell>branch and we're good to go.

00:40:28.300 --> 00:40:29.380
<v Chris Gammell>And everything would have been broken then.

00:40:29.700 --> 00:40:34.360
<v Chris Gammell>But there was all this tooling in place that said, you have to fix these three things before

00:40:34.360 --> 00:40:35.520
<v Chris Gammell>anything can move forward.

00:40:35.760 --> 00:40:38.380
<v Chris Gammell>And that's a really, you know, I was the intern there.

00:40:38.440 --> 00:40:41.380
<v Chris Gammell>I was the guy breaking it and I shouldn't have been able to move forward.

00:40:41.460 --> 00:40:42.200
<v Chris Gammell>And I, I wasn't.

00:40:42.280 --> 00:40:42.740
<v Chris Gammell>And that was great.

00:40:43.060 --> 00:40:46.140
<v Chris Gammell>So bully for, for CI pipelines.

00:40:47.220 --> 00:40:49.840
<v Philip Johnston>Now, do you use CI pipelines on your projects?

00:40:50.460 --> 00:40:50.820
<v Chris Gammell>No.

00:40:51.340 --> 00:40:55.220
<v Chris Gammell>This is, and this is one of the things where usually I'm doing kind of proof of concept

00:40:55.220 --> 00:40:57.700
<v Chris Gammell>type stuff and I won't let myself.

00:40:57.840 --> 00:41:02.880
<v Chris Gammell>So if I'm like moving into a production level environment, I won't let myself do that.

00:41:02.920 --> 00:41:07.600
<v Chris Gammell>I'll go and hire, I'll hire out to a firmware engineer because I want to make sure that there's

00:41:07.600 --> 00:41:12.360
<v Chris Gammell>someone there kind of making sure that things are going to go in a best case scenario.

00:41:12.580 --> 00:41:15.340
<v Chris Gammell>So I'll, you know, I'll go to my clients and say like, look, the hardware is done.

00:41:15.460 --> 00:41:16.960
<v Chris Gammell>I've got a proof of concept going.

00:41:17.020 --> 00:41:18.640
<v Chris Gammell>We need to bring in a firmware engineer.

00:41:18.640 --> 00:41:22.520
<v Chris Gammell>I would love to do what you're talking about and bring up more of it on myself to, you

00:41:22.520 --> 00:41:25.960
<v Chris Gammell>know, have that solo person to be that solo person.

00:41:25.960 --> 00:41:29.780
<v Chris Gammell>But I'm not there yet, but maybe CI pipelines could, could help with that sort of thing.

00:41:30.180 --> 00:41:31.000
<v Philip Johnston>I think so.

00:41:31.000 --> 00:41:35.200
<v Philip Johnston>And especially, you know, if you think about developing it in a reusable way, I'll take

00:41:35.200 --> 00:41:38.120
<v Philip Johnston>a moment to plug some of my educational content.

00:41:38.120 --> 00:41:43.600
<v Philip Johnston>So I've been developing courses really focused on a lot of the things we've been talking about.

00:41:43.940 --> 00:41:46.860
<v Philip Johnston>The current one that I'm working on is design for change.

00:41:46.860 --> 00:41:52.820
<v Philip Johnston>And I also have two courses under development for building systems to support testing automation

00:41:52.820 --> 00:41:56.980
<v Philip Johnston>and, you know, automating our software quality enforcement processes.

00:41:57.280 --> 00:42:03.600
<v Philip Johnston>But before you can do a lot of those things, you really have to have the capability of having

00:42:03.600 --> 00:42:06.360
<v Philip Johnston>a CI system in place to take full advantage of it.

00:42:06.360 --> 00:42:12.080
<v Philip Johnston>You know, it's easier to change our systems and maintain them and expand them and improve

00:42:12.080 --> 00:42:15.940
<v Philip Johnston>them if we know that we have these, these guardrails that are going to catch problems.

00:42:16.180 --> 00:42:21.800
<v Philip Johnston>Once we have a CI pipeline in place, it's like testing automation can be part of every build.

00:42:21.900 --> 00:42:25.280
<v Philip Johnston>And so can the different quality enforcement tools that we can rely on.

00:42:25.280 --> 00:42:29.760
<v Philip Johnston>But until you can get to that point of, you know, building your software from the command

00:42:29.760 --> 00:42:34.660
<v Philip Johnston>line and then having some kind of reusable structure that you can deploy on every project.

00:42:34.660 --> 00:42:37.800
<v Philip Johnston>So you're not, you know, recreating everything from scratch.

00:42:38.100 --> 00:42:40.180
<v Philip Johnston>It becomes really difficult to do that.

00:42:40.280 --> 00:42:47.220
<v Philip Johnston>So we started with a series of courses, one that, you know, teaches people how to how compiling

00:42:47.220 --> 00:42:53.200
<v Philip Johnston>and linking works at a basic level and how to create libraries and link things into applications

00:42:53.200 --> 00:42:58.680
<v Philip Johnston>using make as the first choice, just because it's sort of it doesn't hide the details from you as

00:42:58.680 --> 00:42:58.940
<v Philip Johnston>much.

00:42:59.080 --> 00:43:03.420
<v Philip Johnston>You have to understand how software is constructed to write the make file for that.

00:43:03.760 --> 00:43:07.820
<v Philip Johnston>And then we move on to, you know, you learn something a little more modern that helps you

00:43:07.820 --> 00:43:09.340
<v Philip Johnston>out a bit like CMake or Maison.

00:43:09.340 --> 00:43:15.960
<v Philip Johnston>And we iterate on that to to teach people how to create a reusable build system skeleton.

00:43:16.300 --> 00:43:20.800
<v Philip Johnston>So you have, you know, you can use the same static analysis modules on all of your projects.

00:43:20.980 --> 00:43:25.340
<v Philip Johnston>It's just like, you know, now when I go to start a project, and this is something we

00:43:25.340 --> 00:43:29.380
<v Philip Johnston>demonstrate with one of our courses, I run a little shell script that clones a Git repository,

00:43:29.780 --> 00:43:33.600
<v Philip Johnston>sets up the repository with everything that I need to start a project.

00:43:33.600 --> 00:43:38.800
<v Philip Johnston>Like some, you know, my standard source code organization with the little basic application

00:43:38.800 --> 00:43:42.100
<v Philip Johnston>and my CI rules and all the different modules I need.

00:43:42.220 --> 00:43:48.860
<v Philip Johnston>So I run the script, the project's created, it pushes a commit, my CI server notices that

00:43:48.860 --> 00:43:53.600
<v Philip Johnston>there's a new compliant repository in my organization, and it automatically runs everything.

00:43:53.600 --> 00:43:58.160
<v Philip Johnston>So just out of the box, I run one command, you know, 30 seconds later, I have CI up and running.

00:43:58.500 --> 00:44:03.260
<v Philip Johnston>I think that's something that all developers would benefit from having that kind of

00:44:03.260 --> 00:44:04.200
<v Philip Johnston>infrastructure in place.

00:44:04.340 --> 00:44:09.160
<v Philip Johnston>And, you know, you can learn all of these tools and with the information that's out there.

00:44:09.260 --> 00:44:14.160
<v Philip Johnston>But I really wanted to create a guide to teach people to go from, you know, build your software

00:44:14.160 --> 00:44:19.820
<v Philip Johnston>with these various tools on the command line, and also, you know, figure out how to reuse

00:44:19.820 --> 00:44:23.800
<v Philip Johnston>this code so you can leverage it again and again and again on everything you do in the future and

00:44:23.800 --> 00:44:28.580
<v Philip Johnston>continually improve that as you learn new tools or develop new capabilities of your own.

00:44:28.580 --> 00:44:34.260
<v Philip Johnston>And I think that's a critical mindset that developers benefit from adopting across the board.

00:44:34.880 --> 00:44:35.200
<v Chris Gammell>Yeah.

00:44:35.460 --> 00:44:35.600
<v Chris Gammell>Yeah.

00:44:35.600 --> 00:44:38.400
<v Chris Gammell>And so in that case, you're talking about, you know, all of these pipelines you're setting

00:44:38.400 --> 00:44:39.800
<v Chris Gammell>up and getting things up and going.

00:44:39.900 --> 00:44:41.800
<v Chris Gammell>Is this just to get Blinky going?

00:44:41.900 --> 00:44:42.680
<v Chris Gammell>Is that kind of the idea?

00:44:42.800 --> 00:44:44.380
<v Chris Gammell>But like all of the tooling around it?

00:44:44.920 --> 00:44:46.280
<v Philip Johnston>I mean, that is the idea.

00:44:46.380 --> 00:44:46.560
<v Philip Johnston>Yeah.

00:44:46.620 --> 00:44:50.000
<v Philip Johnston>It's like, I want to run this script and I want to have a little Blinky setup, you know,

00:44:50.040 --> 00:44:51.120
<v Philip Johnston>that I can start with.

00:44:51.220 --> 00:44:54.060
<v Philip Johnston>So it's like, I'm starting with a full CI pipeline.

00:44:54.060 --> 00:44:58.240
<v Philip Johnston>I know my software builds correctly, and then I can start importing the software that's

00:44:58.240 --> 00:44:59.300
<v Philip Johnston>relevant for that project.

00:44:59.620 --> 00:45:03.560
<v Philip Johnston>But because I had a known working starting point, if something breaks, well, I, you know,

00:45:03.580 --> 00:45:04.320
<v Philip Johnston>I know where to look.

00:45:04.580 --> 00:45:06.560
<v Philip Johnston>It's with the things I just brought in.

00:45:06.760 --> 00:45:06.900
<v Philip Johnston>Right.

00:45:07.200 --> 00:45:07.360
<v Chris Gammell>Yeah.

00:45:07.460 --> 00:45:07.920
<v Chris Gammell>That's great.

00:45:08.260 --> 00:45:09.380
<v Chris Gammell>And then what about like adapting?

00:45:09.780 --> 00:45:16.300
<v Chris Gammell>So now you're a consultant, you have to step into scenarios where the stuff isn't implemented.

00:45:16.480 --> 00:45:21.160
<v Chris Gammell>So then, so if someone's listening and they're like, well, I'll never be able to adapt my

00:45:21.160 --> 00:45:25.520
<v Chris Gammell>company's stuff to it, or, you know, I'm joining a new job and they don't have this stuff there.

00:45:25.660 --> 00:45:29.980
<v Chris Gammell>Like what happens when you walk into a new scenario and none of this stuff's in place?

00:45:29.980 --> 00:45:30.800
<v Chris Gammell>Like, what do you do then?

00:45:31.560 --> 00:45:34.260
<v Philip Johnston>Often I put it in place is the simple answer.

00:45:34.940 --> 00:45:40.720
<v Philip Johnston>You know, I think there's always, uh, we can always lower the bar to make things a little

00:45:40.720 --> 00:45:41.900
<v Philip Johnston>more successful, right?

00:45:41.900 --> 00:45:46.160
<v Philip Johnston>Like you don't walk into a new organization and they're not doing anything.

00:45:46.280 --> 00:45:51.120
<v Philip Johnston>Everything's a manual, you know, some to release the software to the customer, a developer

00:45:51.120 --> 00:45:56.140
<v Philip Johnston>on their personal machine is pressing the button and packaging up a zip file and uploading

00:45:56.140 --> 00:45:56.800
<v Philip Johnston>it to a server.

00:45:56.920 --> 00:46:00.840
<v Philip Johnston>You don't step into that and be like, oh, well, you know, you should be doing this all

00:46:00.840 --> 00:46:01.840
<v Philip Johnston>in an automated fashion.

00:46:01.840 --> 00:46:02.180
<v Philip Johnston>Right.

00:46:02.780 --> 00:46:03.220
<v Chris Gammell>Yeah.

00:46:03.580 --> 00:46:05.320
<v Philip Johnston>It's all baby steps, I think.

00:46:05.500 --> 00:46:12.280
<v Philip Johnston>And, you know, a minimum bar is that's really great is every time I push a commit, can I have

00:46:12.280 --> 00:46:16.300
<v Philip Johnston>some kind of server, check out the code and make sure that it compiles successfully?

00:46:16.300 --> 00:46:21.540
<v Philip Johnston>Like that's a huge step in the right direction that I think a lot of teams in the embedded

00:46:21.540 --> 00:46:22.640
<v Philip Johnston>space still aren't doing.

00:46:23.320 --> 00:46:27.040
<v Philip Johnston>And once you have that, it's easier to, to add in other things.

00:46:27.040 --> 00:46:31.100
<v Philip Johnston>It's like, okay, well now our code compiles automatically.

00:46:31.400 --> 00:46:35.140
<v Philip Johnston>What if we didn't have that developer packaging the release at his desk?

00:46:35.280 --> 00:46:39.700
<v Philip Johnston>What if instead we had the server package it in a known good way every time?

00:46:39.700 --> 00:46:46.120
<v Philip Johnston>And so I think usually I start introducing ideas one at a time in that way, you know, and

00:46:46.120 --> 00:46:47.580
<v Philip Johnston>especially for testing.

00:46:47.700 --> 00:46:51.800
<v Philip Johnston>I think testing, especially in an automated fashion is one of the more difficult things

00:46:51.800 --> 00:46:57.740
<v Philip Johnston>to do because if you didn't design your system in a particular way at the start, it can feel

00:46:57.740 --> 00:47:03.740
<v Philip Johnston>impossible to, to bring it under test, especially if you're trying to untangle all the, the hardware

00:47:03.740 --> 00:47:08.200
<v Philip Johnston>pieces from it, um, that are preventing you from running it on your development machine.

00:47:08.200 --> 00:47:15.340
<v Philip Johnston>And in that way, I think there's, you know, you, you might set up a command line interface

00:47:15.340 --> 00:47:17.220
<v Philip Johnston>or maybe that already exists for the project.

00:47:17.220 --> 00:47:21.880
<v Philip Johnston>Most, you know, most projects I've worked on have some kind of serial or USB command line

00:47:21.880 --> 00:47:22.580
<v Philip Johnston>you can talk to.

00:47:22.740 --> 00:47:28.100
<v Philip Johnston>And you just, you know, have a Python script that opens up a serial connection and start

00:47:28.100 --> 00:47:31.340
<v Philip Johnston>sending commands and checking for expected responses on the device.

00:47:31.440 --> 00:47:32.320
<v Philip Johnston>You know, it can be simple.

00:47:33.000 --> 00:47:33.120
<v Chris Gammell>Got it.

00:47:33.180 --> 00:47:37.160
<v Chris Gammell>So like you're, you're having like a little shell that's on your, your end device you're saying.

00:47:37.160 --> 00:47:37.720
<v Chris Gammell>Right.

00:47:37.900 --> 00:47:38.380
<v Chris Gammell>Yeah.

00:47:38.900 --> 00:47:39.380
<v Chris Gammell>Cool.

00:47:39.660 --> 00:47:40.080
<v Chris Gammell>Yeah, that's good.

00:47:40.360 --> 00:47:44.660
<v Chris Gammell>And that allows you to kind of try different things and communicate back and that, that

00:47:44.660 --> 00:47:49.160
<v Chris Gammell>idea and working through a bunch of tests that you might want to have.

00:47:49.580 --> 00:47:50.100
<v Philip Johnston>Absolutely.

00:47:50.780 --> 00:47:56.780
<v Philip Johnston>And, you know, it's testing your system in an automated way, even on the hardware is just

00:47:56.780 --> 00:47:59.020
<v Philip Johnston>really a huge step in the right direction.

00:47:59.020 --> 00:48:03.580
<v Philip Johnston>And so I'm, I'm sort of looking for the easy wins that people can have that just introduce

00:48:03.580 --> 00:48:05.120
<v Philip Johnston>how powerful an idea is.

00:48:05.120 --> 00:48:11.240
<v Philip Johnston>And, you know, once you see the power of testing automation and how you can, you know, your

00:48:11.240 --> 00:48:15.880
<v Philip Johnston>teams have to worry less about testing each build and, you know, you get more coverage

00:48:15.880 --> 00:48:17.160
<v Philip Johnston>and there's a bigger safety net.

00:48:17.240 --> 00:48:20.280
<v Philip Johnston>I think people really recognize that when they experience it.

00:48:20.400 --> 00:48:23.440
<v Philip Johnston>And so I, I just always look for the easy ways to get started.

00:48:24.060 --> 00:48:25.300
<v Philip Johnston>Another thing I like to do.

00:48:25.360 --> 00:48:27.260
<v Philip Johnston>I mean, we talked about earlier was recording data.

00:48:27.260 --> 00:48:32.940
<v Philip Johnston>You know, you can hook up some kind of bus analysis tool and just record the data you're

00:48:32.940 --> 00:48:37.260
<v Philip Johnston>seeing on the bus and play that back through the system to have, you could have known good

00:48:37.260 --> 00:48:38.280
<v Philip Johnston>and known bad cases.

00:48:38.520 --> 00:48:43.020
<v Philip Johnston>You don't necessarily have to, you know, rewrite major portions of your system.

00:48:43.260 --> 00:48:48.840
<v Philip Johnston>You can find one little thing to swap out this fake module that just, you know, whenever

00:48:48.840 --> 00:48:53.180
<v Philip Johnston>it says spy read, it just, you know, cues up the next piece of recorded data or something.

00:48:53.180 --> 00:48:59.960
<v Philip Johnston>So I think there's ways to, to move companies in the right direction without having to, to

00:48:59.960 --> 00:49:04.240
<v Philip Johnston>start over again or to be like, oh, well you went this far and didn't do these things.

00:49:04.240 --> 00:49:06.040
<v Philip Johnston>So now you can't take advantage of the processes.

00:49:06.040 --> 00:49:10.660
<v Philip Johnston>And those are, you know, those are going to be ideas I'm exploring in my upcoming course

00:49:10.660 --> 00:49:12.500
<v Philip Johnston>on building testable embedded systems.

00:49:12.960 --> 00:49:13.600
<v Chris Gammell>That's great.

00:49:13.780 --> 00:49:13.900
<v Chris Gammell>Yeah.

00:49:13.900 --> 00:49:17.600
<v Chris Gammell>I feel like, I feel like as well, from just a marketing point of view too, it's like,

00:49:17.600 --> 00:49:20.440
<v Chris Gammell>you know, walking in as a consultant, be like, we have to change everything.

00:49:20.720 --> 00:49:21.540
<v Chris Gammell>It's like.

00:49:21.660 --> 00:49:22.380
<v Chris Gammell>Never works, right?

00:49:22.380 --> 00:49:25.900
<v Chris Gammell>Of course he's going to say that he's the guy who's charging for it.

00:49:26.080 --> 00:49:26.180
<v Chris Gammell>Right.

00:49:26.340 --> 00:49:27.520
<v Chris Gammell>It's like, yeah, yeah.

00:49:27.680 --> 00:49:28.640
<v Chris Gammell>That's not, it's really good.

00:49:28.700 --> 00:49:29.460
<v Chris Gammell>I think, yeah.

00:49:29.480 --> 00:49:30.680
<v Chris Gammell>And that's, I don't know.

00:49:30.740 --> 00:49:36.820
<v Chris Gammell>I, one thing I've always wondered about is, are there things that you point to as like

00:49:36.820 --> 00:49:39.100
<v Chris Gammell>the, the way things should be done?

00:49:39.160 --> 00:49:42.660
<v Chris Gammell>I feel like there's so much variation between, you know, something that's using like a pick

00:49:42.660 --> 00:49:47.380
<v Chris Gammell>16 versus something that's using like an arm a seven, you know, like somewhere between

00:49:47.380 --> 00:49:48.020
<v Chris Gammell>those two projects.

00:49:48.020 --> 00:49:48.180
<v Chris Gammell>Yeah.

00:49:48.180 --> 00:49:52.360
<v Chris Gammell>They might have the same, you know, at the end of the day, they might have the same methodology.

00:49:52.360 --> 00:49:57.000
<v Chris Gammell>In implementing things, but they're very different products.

00:49:57.000 --> 00:50:02.360
<v Chris Gammell>And so it's hard to be like, there is this golden standard of what should be and shouldn't

00:50:02.360 --> 00:50:02.620
<v Chris Gammell>be.

00:50:03.100 --> 00:50:08.360
<v Philip Johnston>I mean, I'm not an absolutist in any sense, so I don't ever think that there's a golden

00:50:08.360 --> 00:50:09.100
<v Philip Johnston>standard, right?

00:50:09.100 --> 00:50:12.340
<v Philip Johnston>I think what's the golden standard is whatever works for your team.

00:50:12.340 --> 00:50:19.240
<v Philip Johnston>I've worked on, I think 12 shipping products and that I've worked on full time.

00:50:19.240 --> 00:50:22.920
<v Philip Johnston>And then I don't know, maybe 30 or 40 different products as a consultant.

00:50:23.560 --> 00:50:30.820
<v Philip Johnston>So I've seen a lot of ways things are done, but relative to the industry as a whole, I mean,

00:50:30.820 --> 00:50:37.160
<v Philip Johnston>that's still just a small, nothing fraction of what's done across the world in the embedded

00:50:37.160 --> 00:50:37.560
<v Philip Johnston>space.

00:50:37.720 --> 00:50:43.740
<v Philip Johnston>So what I think is important is grounded in my experience, but I've also tried to distill

00:50:43.740 --> 00:50:46.600
<v Philip Johnston>out like, well, what are the foundational ideas there?

00:50:46.700 --> 00:50:51.820
<v Philip Johnston>I think it's pretty foundational that, you know, an individual can improve their capabilities

00:50:51.820 --> 00:50:58.020
<v Philip Johnston>by leveraging tooling to do things in an automated way that they don't have the time or attention

00:50:58.020 --> 00:50:58.640
<v Philip Johnston>span for.

00:50:58.640 --> 00:51:04.180
<v Philip Johnston>I don't, you know, I don't think whether you're working on an ARM seven or a pick really matters

00:51:04.180 --> 00:51:05.440
<v Philip Johnston>for that kind of thing, right?

00:51:05.540 --> 00:51:08.520
<v Philip Johnston>What it looks like in implementation might be totally different.

00:51:09.340 --> 00:51:09.740
<v Chris Gammell>Yeah.

00:51:10.060 --> 00:51:15.980
<v Chris Gammell>I guess what I'm always looking for is like the, you know, I am looking for that golden

00:51:15.980 --> 00:51:16.560
<v Chris Gammell>standard though.

00:51:16.620 --> 00:51:17.080
<v Chris Gammell>Like, you know what I mean?

00:51:17.100 --> 00:51:19.240
<v Chris Gammell>Like I want something to compare against.

00:51:19.340 --> 00:51:24.800
<v Chris Gammell>So I guess, is there something that like, is there like a best case product out there that

00:51:24.800 --> 00:51:29.840
<v Chris Gammell>I could compare, like, I want to basically look at my project, look at another project

00:51:29.840 --> 00:51:34.920
<v Chris Gammell>and be like, oh, I'm not doing 55 things out of this list of 70 things that should be done.

00:51:34.980 --> 00:51:35.360
<v Chris Gammell>You know what I mean?

00:51:35.360 --> 00:51:38.360
<v Chris Gammell>Like, and then, and then I could start to work down that list is, does something like that

00:51:38.360 --> 00:51:38.740
<v Chris Gammell>exist?

00:51:39.340 --> 00:51:44.040
<v Philip Johnston>It doesn't, but I have to tell you, I'm really, really happy to hear you say that because

00:51:44.040 --> 00:51:48.120
<v Philip Johnston>one of the things I've been working on for the upcoming courses is I've been trying to

00:51:48.120 --> 00:51:50.560
<v Philip Johnston>identify what I call model software.

00:51:51.260 --> 00:51:51.820
<v Philip Johnston>Ah, yes.

00:51:51.900 --> 00:51:52.120
<v Philip Johnston>Perfect.

00:51:52.120 --> 00:51:53.880
<v Philip Johnston>I think that we all do that.

00:51:53.980 --> 00:51:58.980
<v Philip Johnston>And I, you know, I think part of the difficulty is, especially with embedded software, all the

00:51:58.980 --> 00:52:03.620
<v Philip Johnston>examples you see don't emphasize the things that I've talked about with information hiding

00:52:03.620 --> 00:52:06.120
<v Philip Johnston>and separation of concerns and loose coupling, right?

00:52:06.160 --> 00:52:11.200
<v Philip Johnston>It's like, no, they, they use the quick and dirty way of your applications, not separated

00:52:11.200 --> 00:52:12.400
<v Philip Johnston>from the SDK at all.

00:52:12.560 --> 00:52:16.460
<v Philip Johnston>And, um, yeah, I think that's fine, but it's like, if that's your model, that's what you're

00:52:16.460 --> 00:52:16.920
<v Philip Johnston>going to copy.

00:52:16.920 --> 00:52:17.160
<v Philip Johnston>Right.

00:52:17.160 --> 00:52:23.180
<v Philip Johnston>So I've been trying to find different projects that reflect some of these, these techniques

00:52:23.180 --> 00:52:24.500
<v Philip Johnston>that we've been talking about.

00:52:24.620 --> 00:52:26.560
<v Philip Johnston>And honestly, it's, it's not easy.

00:52:26.560 --> 00:52:32.060
<v Philip Johnston>And often I look at a product and I'm like, oh, it does this particular thing very, very

00:52:32.060 --> 00:52:32.380
<v Philip Johnston>well.

00:52:32.380 --> 00:52:36.700
<v Philip Johnston>But I think it falls short in these other areas in terms of the qualities that we're

00:52:36.700 --> 00:52:37.240
<v Philip Johnston>looking for.

00:52:37.240 --> 00:52:37.640
<v Philip Johnston>Hmm.

00:52:37.840 --> 00:52:41.120
<v Philip Johnston>And I think even that still is useful to study.

00:52:41.540 --> 00:52:41.860
<v Chris Gammell>Yeah.

00:52:41.940 --> 00:52:42.100
<v Chris Gammell>Yeah.

00:52:42.100 --> 00:52:42.680
<v Chris Gammell>It's basically, yes.

00:52:42.740 --> 00:52:43.200
<v Chris Gammell>Case studies.

00:52:43.200 --> 00:52:43.360
<v Chris Gammell>Right.

00:52:43.360 --> 00:52:48.880
<v Chris Gammell>I mean, like, yeah, I think it's not holistic, but I, you know, having, having just good examples

00:52:48.880 --> 00:52:49.180
<v Chris Gammell>there.

00:52:49.260 --> 00:52:49.660
<v Chris Gammell>I don't know.

00:52:49.660 --> 00:52:52.840
<v Chris Gammell>Like, like, like I said, no one's coming to check your project for you at the end of

00:52:52.840 --> 00:52:53.120
<v Chris Gammell>the day.

00:52:53.660 --> 00:52:57.740
<v Chris Gammell>Nobody's telling you, you should be doing maybe a consultant you could hire to tell you

00:52:57.740 --> 00:52:58.900
<v Chris Gammell>you should be doing X, Y, or C.

00:52:59.020 --> 00:53:02.840
<v Chris Gammell>But like in, in reality, nobody's saying you have to do it this way.

00:53:03.040 --> 00:53:07.160
<v Chris Gammell>And so there are so many different ways to potentially get a job done.

00:53:07.200 --> 00:53:10.240
<v Chris Gammell>It's like, well, then what is the best way?

00:53:10.300 --> 00:53:14.300
<v Chris Gammell>And there, you know, then the next answer feels like it's always, well, there is no best way.

00:53:14.340 --> 00:53:17.680
<v Chris Gammell>And it's like, but I kind of want there to be, I want there to just be like a checklist

00:53:17.680 --> 00:53:20.660
<v Chris Gammell>of like, well, I did this check, check, check, check, check, check.

00:53:20.720 --> 00:53:23.620
<v Chris Gammell>And then, you know, at the end of the day, it's like, yeah, I, I did everything I could

00:53:23.620 --> 00:53:28.920
<v Chris Gammell>to make sure that this is a good product as the best chances of success, you know, is going

00:53:28.920 --> 00:53:30.300
<v Chris Gammell>to catch errors, that sort of thing.

00:53:30.300 --> 00:53:37.540
<v Philip Johnston>Well, I can give you what I think of as maybe, uh, you know, my simple list of, you know,

00:53:37.580 --> 00:53:38.640
<v Philip Johnston>what best would look like.

00:53:38.820 --> 00:53:38.920
<v Philip Johnston>Yeah.

00:53:39.180 --> 00:53:42.780
<v Philip Johnston>So we've talked about CI, we've talked about testability, right?

00:53:42.800 --> 00:53:47.200
<v Philip Johnston>Like I'm going to have some kind of pipeline that's going to run a bunch of checks on my

00:53:47.200 --> 00:53:50.600
<v Philip Johnston>code and I'm going to have tests that can be run on and off the hardware.

00:53:50.720 --> 00:53:55.420
<v Philip Johnston>I think those are pretty simple concepts, but if I'm writing firmware, that doesn't really

00:53:55.420 --> 00:53:55.880
<v Philip Johnston>help me.

00:53:56.400 --> 00:53:56.800
<v Chris Gammell>Okay.

00:53:56.800 --> 00:53:57.240
<v Chris Gammell>Yeah.

00:53:58.140 --> 00:53:59.380
<v Philip Johnston>Evaluating a piece of code.

00:53:59.580 --> 00:54:03.880
<v Philip Johnston>What I want to see is there's good information hiding, which is things that are relevant to

00:54:03.880 --> 00:54:05.220
<v Philip Johnston>that model aren't leaked out.

00:54:05.360 --> 00:54:06.820
<v Philip Johnston>There's no global state leaked out.

00:54:06.940 --> 00:54:11.040
<v Philip Johnston>There's no details about the specific part being used leaked out.

00:54:11.120 --> 00:54:16.480
<v Philip Johnston>You know, we're trying to constrain all the details that are specific to some implementation

00:54:16.480 --> 00:54:18.660
<v Philip Johnston>behind some kind of interface.

00:54:18.660 --> 00:54:19.140
<v Philip Johnston>Yeah.

00:54:19.180 --> 00:54:23.560
<v Philip Johnston>So I'm thinking more in generic terms, you know, I'm going to have good separation of

00:54:23.560 --> 00:54:24.080
<v Philip Johnston>concerns.

00:54:24.080 --> 00:54:29.380
<v Philip Johnston>I'm, I'm not going to have mixed metaphors in my software, which I think is something useful.

00:54:29.380 --> 00:54:34.620
<v Philip Johnston>So for example, I came across a temperature sensor driver that would read samples and report

00:54:34.620 --> 00:54:38.980
<v Philip Johnston>them to the user, but it also had a control loop that essentially monitored for swings.

00:54:38.980 --> 00:54:44.460
<v Philip Johnston>And if the temperature swing in, you know, a positive or negative direction occurred, then

00:54:44.460 --> 00:54:47.300
<v Philip Johnston>it would signal some notifications to registered listeners.

00:54:47.300 --> 00:54:50.380
<v Philip Johnston>And then those listeners were like hard coded in the driver.

00:54:50.480 --> 00:54:53.040
<v Philip Johnston>Well, you know, I, I have a mixed metaphor there.

00:54:53.040 --> 00:54:57.460
<v Philip Johnston>I have a driver, which should be producing temperature sensors, temperature samples.

00:54:57.740 --> 00:55:03.480
<v Philip Johnston>I have a processor, which is operating on those samples and producing a notification that

00:55:03.480 --> 00:55:05.140
<v Philip Johnston>some other thing should respond to.

00:55:05.320 --> 00:55:06.560
<v Philip Johnston>Those should be split up.

00:55:06.560 --> 00:55:11.120
<v Philip Johnston>So you have, you know, your driver is just talking to the hardware and getting samples

00:55:11.120 --> 00:55:16.020
<v Philip Johnston>out and you have different things that can listen to it, which might be this library in

00:55:16.020 --> 00:55:20.900
<v Philip Johnston>your system that's taking in samples and then running, you know, some kind of analysis on

00:55:20.900 --> 00:55:23.220
<v Philip Johnston>them and determining an event needs to be fired.

00:55:23.400 --> 00:55:24.620
<v Philip Johnston>Those should be separated out.

00:55:25.060 --> 00:55:25.640
<v Chris Gammell>Got it.

00:55:25.880 --> 00:55:28.320
<v Philip Johnston>Maybe in a simpler way, does your code do too much?

00:55:28.760 --> 00:55:33.300
<v Philip Johnston>If you do too much in one spot, you know, that's probably going to be something that's hard

00:55:33.300 --> 00:55:37.260
<v Philip Johnston>to change or problematic, or, you know, you're just more likely to get that wrong.

00:55:37.860 --> 00:55:41.620
<v Philip Johnston>And then, you know, I want my code to be as independent as possible.

00:55:41.760 --> 00:55:46.840
<v Philip Johnston>I want, you know, one file to have as few dependencies on other parts of the system as

00:55:46.840 --> 00:55:47.260
<v Philip Johnston>possible.

00:55:47.460 --> 00:55:49.200
<v Philip Johnston>It's not always possible, right?

00:55:49.280 --> 00:55:50.460
<v Philip Johnston>That's why we want to keep it low.

00:55:51.140 --> 00:55:52.260
<v Philip Johnston>Ways we can do that.

00:55:52.420 --> 00:55:54.860
<v Philip Johnston>You want to interact with interfaces, not implementations.

00:55:54.920 --> 00:55:55.940
<v Philip Johnston>I kind of touched on that.

00:55:55.940 --> 00:56:01.740
<v Philip Johnston>I want to talk to a generic accelerometer interface, not the specific STIMU part on the board.

00:56:02.120 --> 00:56:02.500
<v Chris Gammell>Yeah, right.

00:56:02.720 --> 00:56:04.040
<v Chris Gammell>You're definitely not that one these days.

00:56:04.500 --> 00:56:04.640
<v Speaker ?>Yeah.

00:56:05.980 --> 00:56:09.240
<v Philip Johnston>I want to write code against abstractions that I control.

00:56:09.380 --> 00:56:13.160
<v Philip Johnston>I don't want to use somebody else's SDK because it might change, right?

00:56:13.200 --> 00:56:19.120
<v Philip Johnston>So I want to have some layer there that breaks, you know, my system away from somebody else's

00:56:19.120 --> 00:56:19.440
<v Philip Johnston>system.

00:56:19.880 --> 00:56:24.060
<v Philip Johnston>I think that's just good practice of like, you never know when a service is going to change,

00:56:24.060 --> 00:56:27.520
<v Philip Johnston>your library is going to change, your processor vendor is going to change.

00:56:27.620 --> 00:56:28.880
<v Philip Johnston>You're going to have to go to a new part.

00:56:28.960 --> 00:56:30.800
<v Philip Johnston>You're going to have to go to a new processor altogether.

00:56:31.580 --> 00:56:35.260
<v Philip Johnston>And the less dependencies, the more insulated you are against change.

00:56:35.720 --> 00:56:39.740
<v Philip Johnston>Something that I know to be true from my experience is you can't escape change.

00:56:39.760 --> 00:56:40.460
<v Philip Johnston>It's going to happen.

00:56:40.700 --> 00:56:46.620
<v Philip Johnston>And so you just want to think about how you can ensure that your system's going to, you're

00:56:46.620 --> 00:56:50.120
<v Philip Johnston>not going to have to change major parts of your system when, you know, some little

00:56:50.120 --> 00:56:51.620
<v Philip Johnston>piece of your system has to change.

00:56:52.060 --> 00:56:52.140
<v Philip Johnston>Yeah.

00:56:52.140 --> 00:56:58.340
<v Philip Johnston>I think, you know, specializing on that separation is we can really think about how to keep our

00:56:58.340 --> 00:57:03.460
<v Philip Johnston>own systems, hardware specific details behind some kind of barrier or abstraction as well.

00:57:03.820 --> 00:57:09.260
<v Philip Johnston>One of the things that I think about in this regard is like, okay, I have multiple PCB

00:57:09.260 --> 00:57:09.880
<v Philip Johnston>revisions.

00:57:10.540 --> 00:57:17.120
<v Philip Johnston>And now I either have multiple builds that are specific to a unique PCB revision.

00:57:17.120 --> 00:57:22.420
<v Philip Johnston>I've got pre-processor statements that, you know, change some code based on what board

00:57:22.420 --> 00:57:27.260
<v Philip Johnston>revision I have, or I'm reading a set of resistors at boot to determine what the revision is and,

00:57:27.320 --> 00:57:28.500
<v Philip Johnston>you know, controlling that at runtime.

00:57:28.760 --> 00:57:31.500
<v Philip Johnston>But usually that logic's just spread throughout the code base.

00:57:31.640 --> 00:57:33.200
<v Philip Johnston>You could keep it all in one place.

00:57:33.400 --> 00:57:37.320
<v Philip Johnston>You know, you might think of this as your board support package or your hardware abstraction

00:57:37.320 --> 00:57:38.540
<v Philip Johnston>layer or something like that.

00:57:38.540 --> 00:57:44.720
<v Philip Johnston>But I think, you know, embedded developers being so tied to the hardware normally don't think

00:57:44.720 --> 00:57:48.040
<v Philip Johnston>about how to isolate those pieces and places.

00:57:48.400 --> 00:57:54.700
<v Philip Johnston>So if my PCB design changes, I want to be just changing one file rather than scouring the code

00:57:54.700 --> 00:57:58.720
<v Philip Johnston>base for everywhere I reference or check for a board revision and now need to update that

00:57:58.720 --> 00:57:58.960
<v Philip Johnston>again.

00:57:59.460 --> 00:57:59.980
<v Chris Gammell>Ah, yep.

00:58:00.240 --> 00:58:00.400
<v Chris Gammell>Yeah.

00:58:00.620 --> 00:58:00.760
<v Chris Gammell>Yeah.

00:58:00.760 --> 00:58:04.420
<v Chris Gammell>If you're, if you're, uh, if you're doing the control F or control H, you're probably

00:58:04.420 --> 00:58:05.380
<v Chris Gammell>in a bad place, huh?

00:58:05.720 --> 00:58:09.740
<v Philip Johnston>Cause you're going to miss something, you know, or you have a thing that doesn't conform to

00:58:09.740 --> 00:58:14.560
<v Philip Johnston>that exact search or you didn't have to check for that logic before.

00:58:14.560 --> 00:58:16.180
<v Philip Johnston>So you didn't think of it this time.

00:58:16.720 --> 00:58:17.080
<v Chris Gammell>Yeah.

00:58:17.080 --> 00:58:21.740
<v Chris Gammell>Like when you did the control, the, the fine and replace and, uh, you spelled Dwight wrong,

00:58:21.740 --> 00:58:23.800
<v Chris Gammell>like in that episode of the office and it was Dwight.

00:58:24.120 --> 00:58:27.120
<v Chris Gammell>And, uh, you know, that's, that's what's kept in the script.

00:58:27.120 --> 00:58:29.560
<v Chris Gammell>So, um, that one hurts.

00:58:29.560 --> 00:58:33.420
<v Philip Johnston>Cause I, I definitely just, uh, dealt with that like last week.

00:58:33.540 --> 00:58:34.140
<v Philip Johnston>Oh, really?

00:58:34.380 --> 00:58:34.740
<v Philip Johnston>Yeah.

00:58:35.860 --> 00:58:40.240
<v Philip Johnston>Not Dwight, but you know, I had another misspelling and therefore I didn't notice something like

00:58:40.240 --> 00:58:41.880
<v Philip Johnston>didn't get updated in three spots.

00:58:42.060 --> 00:58:42.420
<v Philip Johnston>Yeah.

00:58:42.560 --> 00:58:42.760
<v Philip Johnston>Yeah.

00:58:45.380 --> 00:58:45.780
<v Chris Gammell>Okay.

00:58:45.820 --> 00:58:47.820
<v Chris Gammell>So this is, but yeah, this is really good stuff.

00:58:47.820 --> 00:58:53.100
<v Chris Gammell>So we've been talking kind of like low level building stuff, uh, obviously pipelines and

00:58:53.100 --> 00:58:55.260
<v Chris Gammell>testing and interfacing with hardware.

00:58:55.260 --> 00:59:02.580
<v Chris Gammell>And briefly, I'd like to just turn in the other direction and go like higher level of

00:59:02.580 --> 00:59:06.360
<v Chris Gammell>abstraction and talk about like networking level things are toss.

00:59:06.500 --> 00:59:07.940
<v Chris Gammell>Obviously this is not a small topic.

00:59:07.940 --> 00:59:13.740
<v Chris Gammell>This could probably be an entire podcast on its own, but now the complexity goes up, right?

00:59:13.780 --> 00:59:17.880
<v Chris Gammell>You've got now a wifi device, you've got some kind of network interface, cellular, whatever

00:59:17.880 --> 00:59:18.400
<v Chris Gammell>it is.

00:59:18.780 --> 00:59:20.400
<v Chris Gammell>How does it, does this change at all?

00:59:20.480 --> 00:59:21.500
<v Chris Gammell>I mean, is it all the same?

00:59:21.580 --> 00:59:22.940
<v Chris Gammell>Does it, does it get easier?

00:59:23.000 --> 00:59:23.660
<v Chris Gammell>Does it get harder?

00:59:23.660 --> 00:59:27.600
<v Chris Gammell>Is it, you know, is there an additional layer of things to think about?

00:59:27.700 --> 00:59:28.780
<v Chris Gammell>Do you have another course about this?

00:59:28.840 --> 00:59:33.020
<v Chris Gammell>Like what happens when it, when the complexity gets much more complex?

00:59:33.520 --> 00:59:35.140
<v Philip Johnston>I don't think it changes at all.

00:59:35.220 --> 00:59:41.940
<v Philip Johnston>I think what matters is that these strategies become increasingly important because they

00:59:41.940 --> 00:59:43.200
<v Philip Johnston>help you manage the complexity.

00:59:43.700 --> 00:59:49.320
<v Philip Johnston>You know, if you think about it, like it's much easier for you to reason about simple systems.

00:59:49.320 --> 00:59:56.160
<v Philip Johnston>And so having a complex system composed of multiple simple systems working together, I find to

00:59:56.160 --> 00:59:57.600
<v Philip Johnston>be much easier to reason about.

00:59:57.940 --> 00:59:59.700
<v Philip Johnston>That doesn't necessarily make it true.

00:59:59.800 --> 01:00:03.580
<v Philip Johnston>Obviously the system as a whole is going to have properties that we can't predict just

01:00:03.580 --> 01:00:05.200
<v Philip Johnston>from looking at its parts.

01:00:05.200 --> 01:00:12.440
<v Philip Johnston>Perhaps in that way, you know, the more complex the project, the more you really do depend on having

01:00:12.440 --> 01:00:18.300
<v Philip Johnston>runtime checks as well, because you can't just test your pieces in isolation and then guarantee

01:00:18.300 --> 01:00:21.260
<v Philip Johnston>that your, you know, system as a whole is going to be working together.

01:00:21.260 --> 01:00:26.220
<v Philip Johnston>Part of it too, I mean, with networks, the real difficult thing, and you know, you just,

01:00:26.580 --> 01:00:31.540
<v Philip Johnston>I don't know how you, how you get away from this, but it always seems to work at the developer's

01:00:31.540 --> 01:00:34.440
<v Philip Johnston>desk because there's no difficult network setup, right?

01:00:34.480 --> 01:00:36.120
<v Philip Johnston>You're, you have a golden network setup.

01:00:36.240 --> 01:00:37.360
<v Chris Gammell>You've got high speed.

01:00:37.640 --> 01:00:39.580
<v Chris Gammell>The land is coming into the back of my computer.

01:00:39.920 --> 01:00:40.360
<v Chris Gammell>Yeah.

01:00:40.720 --> 01:00:42.060
<v Chris Gammell>I have a fiber connection.

01:00:42.220 --> 01:00:47.100
<v Philip Johnston>You're not in an apartment with 25 different wifi networks causing a bunch of noise.

01:00:47.100 --> 01:00:49.620
<v Philip Johnston>You know, it's the ranges are good.

01:00:49.780 --> 01:00:50.700
<v Philip Johnston>I think too.

01:00:50.880 --> 01:00:55.800
<v Philip Johnston>So in that case, you need to have some way to test difficult scenarios.

01:00:55.960 --> 01:00:59.800
<v Philip Johnston>I don't have a good answer for that other than, you know, I've dealt with this on networked

01:00:59.800 --> 01:01:02.940
<v Philip Johnston>products for my whole career of works great in the office.

01:01:02.940 --> 01:01:06.880
<v Philip Johnston>You put it into the actual operating environment and then it doesn't function at all.

01:01:07.120 --> 01:01:07.280
<v Chris Gammell>Yeah.

01:01:07.580 --> 01:01:07.780
<v Chris Gammell>Yeah.

01:01:07.940 --> 01:01:12.120
<v Chris Gammell>I feel like there's also the, uh, well, we sent the intern down the block and we did a line

01:01:12.120 --> 01:01:12.980
<v Chris Gammell>of site test.

01:01:13.520 --> 01:01:13.880
<v Chris Gammell>Right.

01:01:14.940 --> 01:01:16.960
<v Chris Gammell>It's like, that's again, that doesn't really.

01:01:17.100 --> 01:01:20.240
<v Chris Gammell>That doesn't really teach you much, you know, like what happens when a building's in the

01:01:20.240 --> 01:01:24.720
<v Chris Gammell>way or you're in the basement or, you know, like there's a lot of other things than just

01:01:24.720 --> 01:01:26.540
<v Chris Gammell>because the radio can get 500 feet.

01:01:26.540 --> 01:01:29.740
<v Chris Gammell>Doesn't mean your radio will get 10 feet through a concrete wall.

01:01:30.240 --> 01:01:30.640
<v Philip Johnston>Absolutely.

01:01:30.840 --> 01:01:31.060
<v Philip Johnston>Right.

01:01:31.440 --> 01:01:31.620
<v Philip Johnston>Yeah.

01:01:31.640 --> 01:01:35.320
<v Philip Johnston>You can't guarantee that your customers' homes are going to be designed in a way that's

01:01:35.320 --> 01:01:36.620
<v Philip Johnston>optimal for your products use.

01:01:36.800 --> 01:01:36.960
<v Chris Gammell>Right.

01:01:37.380 --> 01:01:37.560
<v Chris Gammell>Yeah.

01:01:38.260 --> 01:01:43.260
<v Philip Johnston>And, you know, I don't, I don't have a simple answer other than that certainly requires

01:01:43.260 --> 01:01:47.280
<v Philip Johnston>a lot more thought and testing than I think, you know, most of us are used to.

01:01:47.520 --> 01:01:50.020
<v Chris Gammell>I feel like the default answer at the end of the day is, well, you can hire Philip.

01:01:52.920 --> 01:01:56.360
<v Philip Johnston>I don't know if I necessarily want to be the guy doing that testing though.

01:01:57.620 --> 01:01:58.160
<v Chris Gammell>Also true.

01:01:58.280 --> 01:01:58.720
<v Chris Gammell>Also true.

01:01:59.240 --> 01:02:01.560
<v Chris Gammell>What about, I mean, I mentioned RTOS.

01:02:01.740 --> 01:02:02.560
<v Chris Gammell>I mean, that's something.

01:02:03.080 --> 01:02:03.300
<v Chris Gammell>Yeah.

01:02:03.300 --> 01:02:07.620
<v Chris Gammell>Something I'm in, in that land now, you know, kind of trying to navigate it.

01:02:07.900 --> 01:02:12.200
<v Chris Gammell>That's a very different thing from what I talked about of like going from like a, basically

01:02:12.200 --> 01:02:15.040
<v Chris Gammell>like a bare metal SDK up to that.

01:02:15.380 --> 01:02:20.260
<v Chris Gammell>For example, I use the NRF5 SDK or I used it in past projects.

01:02:20.700 --> 01:02:24.280
<v Chris Gammell>Nordic going forward is going to be using Zephyr exclusively for new products.

01:02:24.280 --> 01:02:26.640
<v Chris Gammell>And it's like, okay, so that's a pretty significant shift.

01:02:26.640 --> 01:02:32.080
<v Chris Gammell>Even if people are just leaning into like, okay, I, I use the NRF52, I was able to hack

01:02:32.080 --> 01:02:36.900
<v Chris Gammell>it fine, you know, for a proof of concept now in NRF53, I'm in Zephyr.

01:02:36.960 --> 01:02:39.600
<v Chris Gammell>And it's like, I'm in a whole new world.

01:02:40.240 --> 01:02:41.240
<v Chris Gammell>Cue the Aladdin music.

01:02:42.520 --> 01:02:49.860
<v Chris Gammell>And so, so like, how does that kind of thing impact how you approach a problem here?

01:02:50.640 --> 01:02:53.680
<v Philip Johnston>Well, I think there are two different answers.

01:02:53.680 --> 01:03:01.620
<v Philip Johnston>One is, you know, for a simpler RTOS than Zephyr, I think that my advice is one, treat

01:03:01.620 --> 01:03:02.720
<v Philip Johnston>it like any other dependency.

01:03:03.140 --> 01:03:07.920
<v Philip Johnston>So, you know, you want to interact with an interface that sits on top of the RTOS that

01:03:07.920 --> 01:03:14.240
<v Philip Johnston>you control, because then now I'm in a better position to swap out my code so it can run

01:03:14.240 --> 01:03:16.820
<v Philip Johnston>on my development machine for tests versus on the RTOS.

01:03:16.820 --> 01:03:22.420
<v Philip Johnston>If you think of like just using a simple mutex lock with a handle or a mutex unlock with a

01:03:22.420 --> 01:03:24.940
<v Philip Johnston>handle instead of the RTOS API.

01:03:25.580 --> 01:03:26.060
<v Philip Johnston>Okay.

01:03:26.180 --> 01:03:30.360
<v Philip Johnston>It does, however, lead to more careful design considerations.

01:03:30.360 --> 01:03:33.480
<v Philip Johnston>And how do I set thread priorities?

01:03:33.900 --> 01:03:35.920
<v Philip Johnston>You know, what is my threaded architecture?

01:03:36.380 --> 01:03:38.480
<v Philip Johnston>Am I going to have deadlocks?

01:03:39.500 --> 01:03:41.360
<v Chris Gammell>You know, or a priority inversion.

01:03:41.500 --> 01:03:42.160
<v Chris Gammell>I know that term.

01:03:43.160 --> 01:03:48.840
<v Philip Johnston>Luckily, most of the RTOS have, you know, resolved that one, at least with some of the

01:03:48.840 --> 01:03:55.420
<v Philip Johnston>constructs that are available, but yeah, it's, it's a, it leads to a very complicated design

01:03:55.420 --> 01:03:57.680
<v Philip Johnston>that I think is hard for people to reason about.

01:03:58.440 --> 01:04:00.160
<v Philip Johnston>Like you mentioned for the complexity.

01:04:01.200 --> 01:04:06.040
<v Philip Johnston>Personally, this is something I will be focusing on in the future, but I don't have a good answer

01:04:06.040 --> 01:04:07.740
<v Philip Johnston>yet because I'm still exploring in this way.

01:04:07.740 --> 01:04:14.420
<v Philip Johnston>But I think it's a lot easier to reason about the code if we are able to structure it in such a way

01:04:14.420 --> 01:04:19.360
<v Philip Johnston>that we're not thinking about threads and locks and semaphores and events.

01:04:20.460 --> 01:04:24.720
<v Philip Johnston>There, you know, it's one model I like is a dispatch queue.

01:04:24.840 --> 01:04:32.080
<v Philip Johnston>So I have a queue that I can take function pointers and add them to a queue or one of four queues.

01:04:32.120 --> 01:04:34.520
<v Philip Johnston>And there's a certain number of threads associated with it.

01:04:34.520 --> 01:04:37.540
<v Philip Johnston>And each thread essentially checks the queue.

01:04:37.740 --> 01:04:41.460
<v Philip Johnston>And, you know, if there's work to do, it pops it off and runs it on that thread.

01:04:42.320 --> 01:04:46.080
<v Philip Johnston>That makes it easier to do things like, okay, I have, I don't need a button thread anymore.

01:04:46.180 --> 01:04:48.260
<v Philip Johnston>That's doing something when a button's thrust.

01:04:48.300 --> 01:04:50.660
<v Philip Johnston>I can have my interrupt fire that adds a function to a queue.

01:04:50.840 --> 01:04:53.900
<v Philip Johnston>And then that runs when there's, you know, the work is next available.

01:04:54.780 --> 01:04:58.560
<v Philip Johnston>However, that requires a totally different way of thinking about how you write your programs.

01:04:58.560 --> 01:05:02.840
<v Philip Johnston>And, you know, I don't know that I'm prepared to, to give the electrical engineer

01:05:02.840 --> 01:05:07.200
<v Philip Johnston>turned software developer advice that makes sense on, on how that's done.

01:05:07.880 --> 01:05:07.940
<v Philip Johnston>Yeah.

01:05:08.260 --> 01:05:08.940
<v Philip Johnston>Other way.

01:05:09.020 --> 01:05:15.960
<v Philip Johnston>But I think the idea of not working with raw threads and instead using the constructs that

01:05:15.960 --> 01:05:18.620
<v Philip Johnston>hide a thread and a queue together.

01:05:18.740 --> 01:05:22.780
<v Philip Johnston>So you're, you know, when you're writing the code, it seems like you're popping events onto

01:05:22.780 --> 01:05:23.260
<v Philip Johnston>a queue.

01:05:23.260 --> 01:05:28.180
<v Philip Johnston>I think that model helps manage the complexity of multi-threaded code quite a bit.

01:05:28.720 --> 01:05:34.340
<v Philip Johnston>And I wish I had a more, I guess, more structured answer on that front for you.

01:05:34.580 --> 01:05:37.940
<v Chris Gammell>No, I think it's, I mean, it, it actually kind of sounds like what we talked about at

01:05:37.940 --> 01:05:42.180
<v Chris Gammell>the beginning of like just trying to reduce in a testing mindset, you're just trying to

01:05:42.180 --> 01:05:47.080
<v Chris Gammell>reduce complexity as much as possible to, to make it a kind of an atomic test.

01:05:47.120 --> 01:05:49.580
<v Chris Gammell>It feels like that, is that a fair assumption?

01:05:50.020 --> 01:05:50.640
<v Philip Johnston>Absolutely true.

01:05:50.640 --> 01:05:55.640
<v Philip Johnston>I'm trying to keep different pieces of the system standalone, if at all possible.

01:05:56.660 --> 01:05:57.020
<v Chris Gammell>Yeah.

01:05:57.120 --> 01:06:03.380
<v Chris Gammell>I think that that job gets harder because you, there's a lot of interdependencies, but that's,

01:06:03.480 --> 01:06:04.960
<v Chris Gammell>that's what the job is.

01:06:05.000 --> 01:06:08.360
<v Chris Gammell>So that's, if you're in that world, you got to go figure it out, folks.

01:06:09.120 --> 01:06:12.740
<v Philip Johnston>Well, and if you're, you know, if you think about, I'm using threads and locks and semaphores

01:06:12.740 --> 01:06:20.460
<v Philip Johnston>now, I, typically it's like, I have my driver sets a flag or, you know, releases

01:06:20.460 --> 01:06:23.500
<v Philip Johnston>a semaphore in an interrupt routine when something's completed.

01:06:23.500 --> 01:06:29.280
<v Philip Johnston>And then I have some other code that's processing the data that is also listening for the same

01:06:29.280 --> 01:06:30.360
<v Philip Johnston>semaphore flag.

01:06:30.360 --> 01:06:34.180
<v Philip Johnston>And so those two are tied together now because they, they share their state, right?

01:06:34.260 --> 01:06:38.040
<v Philip Johnston>So that's sort of where the coupling and the complexity comes in.

01:06:38.040 --> 01:06:44.460
<v Philip Johnston>And, you know, where I think it's, if it would be at all possible, it's beneficial to where

01:06:44.460 --> 01:06:48.980
<v Philip Johnston>your driver doesn't have to know anything about this shared state with whatever's processing

01:06:48.980 --> 01:06:49.720
<v Philip Johnston>that information.

01:06:49.860 --> 01:06:54.620
<v Philip Johnston>And, you know, it's not always feasible or there might be reasons that that is better

01:06:54.620 --> 01:06:57.580
<v Philip Johnston>than keeping them separated and interacting with queue interfaces.

01:06:57.940 --> 01:07:00.700
<v Philip Johnston>You know, there's always trade-offs to consider in engineering.

01:07:00.700 --> 01:07:00.780
<v Philip Johnston>Yeah.

01:07:01.520 --> 01:07:01.960
<v Chris Gammell>Yeah.

01:07:02.100 --> 01:07:04.940
<v Chris Gammell>It's a, there's a lot, there's a lot to consider there for sure.

01:07:05.300 --> 01:07:06.780
<v Philip Johnston>And then you asked about Zephyr.

01:07:06.880 --> 01:07:08.680
<v Philip Johnston>I think Zephyr is a totally different beast.

01:07:09.160 --> 01:07:09.580
<v Philip Johnston>Oh, interesting.

01:07:09.760 --> 01:07:09.940
<v Philip Johnston>Okay.

01:07:10.460 --> 01:07:16.240
<v Philip Johnston>I mean, there's just, you know, with, if you're using free RTOS, you're not opting into an ecosystem.

01:07:16.240 --> 01:07:18.040
<v Philip Johnston>You're picking a component of your system.

01:07:18.040 --> 01:07:22.600
<v Philip Johnston>With Zephyr, you're opting into an entire ecosystem, an entire way of operating.

01:07:23.340 --> 01:07:29.240
<v Philip Johnston>And coincidentally, some of these things that I mentioned, like a dispatch queue or actors, I think

01:07:29.240 --> 01:07:31.560
<v Philip Johnston>are already supported by Zephyr.

01:07:32.020 --> 01:07:32.340
<v Chris Gammell>Yeah.

01:07:33.520 --> 01:07:33.840
<v Chris Gammell>Yeah.

01:07:33.860 --> 01:07:34.120
<v Chris Gammell>It does.

01:07:34.200 --> 01:07:36.900
<v Chris Gammell>It does kind of feel like kind of top down, like Zephyr's like top down.

01:07:36.960 --> 01:07:38.280
<v Chris Gammell>It's like, yeah, you just kind of, it's all there.

01:07:38.340 --> 01:07:40.000
<v Chris Gammell>You choose what you want to turn on or off.

01:07:40.120 --> 01:07:43.520
<v Chris Gammell>And free RTOS is more like, well, it's kind of bolt on your, not bolt on, but you know,

01:07:43.520 --> 01:07:46.100
<v Chris Gammell>you choose your pieces and then you kind of integrate them.

01:07:46.320 --> 01:07:49.200
<v Chris Gammell>Obviously there's a lot of support out there for various things, but you're building kind

01:07:49.200 --> 01:07:52.960
<v Chris Gammell>of bottom up and you're saying, yeah, no, actually I do want a networking piece.

01:07:53.040 --> 01:07:53.120
<v Chris Gammell>Yeah.

01:07:53.160 --> 01:07:56.580
<v Chris Gammell>I do want this other, you know, piece of it now.

01:07:56.580 --> 01:07:59.540
<v Chris Gammell>And, and it's kind of more low level handling.

01:08:00.360 --> 01:08:00.440
<v Philip Johnston>Yeah.

01:08:00.520 --> 01:08:06.220
<v Philip Johnston>And I think there's, you know, there's a lot to Zephyr, especially if you're, you're

01:08:06.220 --> 01:08:09.140
<v Philip Johnston>trying to, I think what they're doing is great.

01:08:09.280 --> 01:08:15.660
<v Philip Johnston>I think that, you know, they're trying to produce a framework that provides a lot of

01:08:15.660 --> 01:08:21.600
<v Philip Johnston>benefit to developers from preventing them from having to rewrite these difficult components

01:08:21.600 --> 01:08:23.000
<v Philip Johnston>on every project.

01:08:23.480 --> 01:08:29.380
<v Philip Johnston>You know, I think the hard sell is you have to opt into everything, you know, you have

01:08:29.380 --> 01:08:34.260
<v Philip Johnston>to opt into Zephyr's way of thinking and building and operating and structuring.

01:08:34.500 --> 01:08:39.180
<v Philip Johnston>And, you know, I think that will resonate with some people and probably not others.

01:08:39.720 --> 01:08:39.840
<v Chris Gammell>Yeah.

01:08:40.240 --> 01:08:40.540
<v Chris Gammell>Yeah.

01:08:40.540 --> 01:08:46.020
<v Chris Gammell>One thing I've noticed just at the, at the outset is like power handling is just not given

01:08:46.020 --> 01:08:47.500
<v Chris Gammell>a ton of focus.

01:08:47.500 --> 01:08:50.900
<v Chris Gammell>And it was like, when I think about embedded, like, that's like usually the first thing that

01:08:50.900 --> 01:08:54.600
<v Chris Gammell>comes, you know, like networking is an important thing and usually it's pretty hungry for power

01:08:54.600 --> 01:08:58.720
<v Chris Gammell>anyways, but like, I still need to run off a battery here and I still need to have enough

01:08:58.720 --> 01:09:03.640
<v Chris Gammell>control to be able to turn off discrete elements and lower the power requirements.

01:09:03.640 --> 01:09:06.360
<v Chris Gammell>And it's just like, that's, you know, that's kind of like secondary.

01:09:06.360 --> 01:09:08.040
<v Chris Gammell>It's like, well, but we're focused on the network.

01:09:08.140 --> 01:09:12.360
<v Chris Gammell>It's like, well, okay guys, but I, I need that other stuff too.

01:09:12.480 --> 01:09:14.280
<v Chris Gammell>You know, like I need to run on a small battery.

01:09:14.280 --> 01:09:14.720
<v Chris Gammell>Yeah.

01:09:14.720 --> 01:09:16.680
<v Philip Johnston>And I, I mean, I would second that.

01:09:16.780 --> 01:09:21.760
<v Philip Johnston>I think one of the biggest concerns in how I structure systems is, um, making sure that

01:09:21.760 --> 01:09:25.020
<v Philip Johnston>I can support low power states and changing power states.

01:09:25.020 --> 01:09:27.760
<v Philip Johnston>And it's not really something that can be ignored.

01:09:27.760 --> 01:09:32.300
<v Philip Johnston>I guess if you're like running on a, on a dedicated power supply, sure, you're fine.

01:09:32.300 --> 01:09:37.720
<v Philip Johnston>But most cellular cellular projects that I've worked on are, you know, they're operating on

01:09:37.720 --> 01:09:40.540
<v Philip Johnston>very low powers and wake up once a day or something.

01:09:41.120 --> 01:09:43.940
<v Philip Johnston>So that'll be interesting to see how it evolves.

01:09:43.940 --> 01:09:44.380
<v Philip Johnston>Yeah.

01:09:44.380 --> 01:09:44.860
<v Chris Gammell>Yeah.

01:09:44.860 --> 01:09:44.940
<v Chris Gammell>Yeah.

01:09:44.940 --> 01:09:47.100
<v Chris Gammell>What I've seen so far with that, I mean, it's been good.

01:09:47.100 --> 01:09:50.260
<v Chris Gammell>And I think, you know, the fact that there's the thing that I like about the Zephyr stuff

01:09:50.260 --> 01:09:53.340
<v Chris Gammell>is it's like the vendors who are in it, are they're like, they're in it, you know, like

01:09:53.340 --> 01:09:57.020
<v Chris Gammell>Nordic specifically, I think they're driving a lot of it, but like the fact that there's

01:09:57.020 --> 01:10:00.600
<v Chris Gammell>vendor buy-in is, is exciting.

01:10:00.880 --> 01:10:01.900
<v Chris Gammell>I, I, I don't know.

01:10:02.000 --> 01:10:05.520
<v Chris Gammell>I think it also leads to some politicking, but that's neither here nor there.

01:10:05.520 --> 01:10:12.520
<v Chris Gammell>And I think there's kind of a, I don't know, there's no coalescing, you know, there's been

01:10:12.520 --> 01:10:17.280
<v Chris Gammell>various support for different RTOSs in the past, you know, and it's like, yeah, we put

01:10:17.280 --> 01:10:21.000
<v Chris Gammell>like one or two people on it within a company, but it's, it feels like there's a little bit

01:10:21.000 --> 01:10:24.900
<v Chris Gammell>more support here now, which is nice, but it's still growing.

01:10:24.900 --> 01:10:28.140
<v Chris Gammell>So lots, lots, lots of work to do.

01:10:28.740 --> 01:10:32.040
<v Philip Johnston>My only experience with Zephyr has been with Nordic in particular.

01:10:32.280 --> 01:10:35.920
<v Philip Johnston>So do you know if there are other vendors that are really buying into that?

01:10:36.380 --> 01:10:37.180
<v Chris Gammell>Espressif's all in.

01:10:37.600 --> 01:10:38.120
<v Chris Gammell>Oh, that's great.

01:10:38.240 --> 01:10:38.500
<v Chris Gammell>Interesting.

01:10:39.000 --> 01:10:39.140
<v Philip Johnston>Yeah.

01:10:39.160 --> 01:10:40.060
<v Philip Johnston>I mean, they're a big player.

01:10:40.340 --> 01:10:44.040
<v Chris Gammell>NXP as well, but like, they're not, not as big.

01:10:44.720 --> 01:10:46.640
<v Chris Gammell>I'd probably put those three at the top.

01:10:47.420 --> 01:10:54.840
<v Chris Gammell>ST is also in there, but not at the same level as far as I know, but like Nordic is, is driving

01:10:54.840 --> 01:10:55.280
<v Chris Gammell>the charge.

01:10:55.360 --> 01:10:57.420
<v Chris Gammell>I mean, they're the, they're the first ones I've heard of where they're like, no, no,

01:10:58.040 --> 01:11:00.340
<v Chris Gammell>we're not doing an SDK unless it's Zephyr based in the future.

01:11:00.360 --> 01:11:01.040
<v Chris Gammell>It's like, oh, okay.

01:11:01.120 --> 01:11:02.860
<v Chris Gammell>Well, that's, that's not small.

01:11:03.040 --> 01:11:03.980
<v Chris Gammell>Uh, yeah.

01:11:03.980 --> 01:11:04.200
<v Chris Gammell>Yeah.

01:11:04.680 --> 01:11:05.080
<v Philip Johnston>Yeah.

01:11:05.280 --> 01:11:10.920
<v Philip Johnston>I personally find Zephyr difficult because there's just so much complexity to deal with

01:11:10.920 --> 01:11:11.220
<v Philip Johnston>that.

01:11:11.340 --> 01:11:11.440
<v Philip Johnston>Yeah.

01:11:11.960 --> 01:11:13.460
<v Philip Johnston>Part of it is an investment, right?

01:11:13.480 --> 01:11:16.000
<v Philip Johnston>I have to invest a significant amount of time to learning that.

01:11:16.060 --> 01:11:19.560
<v Philip Johnston>And I just haven't had a good reason to do that yet.

01:11:19.900 --> 01:11:20.300
<v Chris Gammell>Yeah.

01:11:20.700 --> 01:11:24.500
<v Philip Johnston>But that does, you know, it gives me some trepidation if I need to, to do something.

01:11:24.840 --> 01:11:29.060
<v Philip Johnston>If it's new, then really, I'm going to have to recreate a lot of the work I've done in

01:11:29.060 --> 01:11:34.400
<v Philip Johnston>the past or just discard a lot of it to work in a new system, which, you know, I think makes

01:11:34.400 --> 01:11:35.880
<v Philip Johnston>sense in some cases and not others.

01:11:36.400 --> 01:11:36.520
<v Chris Gammell>Yeah.

01:11:36.620 --> 01:11:37.220
<v Chris Gammell>I think that's right.

01:11:37.220 --> 01:11:42.780
<v Chris Gammell>And I, I think much like, you know, we were talking about going from hardware into firmware.

01:11:43.140 --> 01:11:48.320
<v Chris Gammell>It's almost like now it's like going from like this lower level firmware up into maybe

01:11:48.320 --> 01:11:48.780
<v Chris Gammell>an RTOS.

01:11:48.780 --> 01:11:52.160
<v Chris Gammell>And it's almost like, well, now you're like kind of closer to like an embedded Linux

01:11:52.160 --> 01:11:52.660
<v Chris Gammell>developer.

01:11:52.660 --> 01:11:55.340
<v Chris Gammell>And like, that's like its own thing.

01:11:55.340 --> 01:11:58.640
<v Chris Gammell>It's like another jump up the abstraction chain.

01:11:58.820 --> 01:12:01.340
<v Chris Gammell>It's like, oh, I guess that's what I'm going to do now.

01:12:01.580 --> 01:12:02.480
<v Chris Gammell>You know, it's like, that's true.

01:12:02.560 --> 01:12:05.980
<v Chris Gammell>It's just like how, yeah, like you're saying, like where you're investing your time and your

01:12:05.980 --> 01:12:06.420
<v Chris Gammell>resources.

01:12:06.660 --> 01:12:10.820
<v Chris Gammell>And unless it's driven by a client in your case, or, you know, an employer for someone

01:12:10.820 --> 01:12:12.700
<v Chris Gammell>else that's, you know, being chosen there.

01:12:12.700 --> 01:12:16.700
<v Chris Gammell>It's like, I do think that the majority of people that are going to choose something

01:12:16.700 --> 01:12:21.280
<v Chris Gammell>like that, or kind of more, you know, ecosystem type things, it's kind of driven in a top

01:12:21.280 --> 01:12:22.600
<v Chris Gammell>down way as well.

01:12:22.760 --> 01:12:25.160
<v Chris Gammell>You know, like company says, yeah, we're on Zephyr and everybody in the company is like,

01:12:25.220 --> 01:12:26.440
<v Chris Gammell>all right, well, what else are we going to do?

01:12:26.560 --> 01:12:31.560
<v Chris Gammell>You know, whereas if it's like, I get to choose from scratch, it's like, I'm going to evaluate

01:12:31.560 --> 01:12:33.060
<v Chris Gammell>multiple solutions out there.

01:12:33.420 --> 01:12:33.920
<v Chris Gammell>So, yeah.

01:12:35.060 --> 01:12:41.300
<v Philip Johnston>And I think too, maybe it speaks to just a sea change that's happening overall where,

01:12:41.620 --> 01:12:45.140
<v Philip Johnston>you know, it used to be to work on firmware.

01:12:45.140 --> 01:12:49.760
<v Philip Johnston>You really did need to be an electrical engineer and like really understand how the hardware

01:12:49.760 --> 01:12:50.120
<v Philip Johnston>worked.

01:12:50.160 --> 01:12:54.100
<v Philip Johnston>And you had to have a good sense of computer architecture and like what your processor was

01:12:54.100 --> 01:12:56.880
<v Philip Johnston>doing and, you know, your resources were constrained.

01:12:56.980 --> 01:12:58.440
<v Philip Johnston>It was just a totally different environment.

01:12:58.440 --> 01:13:06.140
<v Philip Johnston>But I think as the software ecosystem has come along and the parts have gotten better and

01:13:06.140 --> 01:13:11.340
<v Philip Johnston>we have more memory now, I think more and more, for lack of a better word, pure software

01:13:11.340 --> 01:13:14.460
<v Philip Johnston>teams are taking on embedded projects.

01:13:14.780 --> 01:13:20.960
<v Philip Johnston>And maybe things like Zephyr make that more accessible because you already have this foundational

01:13:20.960 --> 01:13:23.880
<v Philip Johnston>system that works in a way that you expect.

01:13:23.880 --> 01:13:29.800
<v Philip Johnston>And you're more focused on the software aspect of it in particular, rather than the low level

01:13:29.800 --> 01:13:30.260
<v Philip Johnston>details.

01:13:30.260 --> 01:13:36.380
<v Philip Johnston>And I think we're going to see more and more embedded software get maybe bifurcated in that

01:13:36.380 --> 01:13:42.660
<v Philip Johnston>way where you don't necessarily have as much of a differentiation between embedded software

01:13:42.660 --> 01:13:44.640
<v Philip Johnston>and non-embedded software.

01:13:44.640 --> 01:13:48.720
<v Philip Johnston>But you still have those people who are, you know, low level specialists who are writing the

01:13:48.720 --> 01:13:53.240
<v Philip Johnston>board support packages for the frameworks and doing driver development and power optimization

01:13:53.240 --> 01:13:54.240
<v Philip Johnston>and things like that.

01:13:54.660 --> 01:13:55.800
<v Philip Johnston>Maybe that just becomes more niche.

01:13:56.360 --> 01:13:58.240
<v Chris Gammell>I feel like it's all with network interface too.

01:13:58.240 --> 01:14:02.420
<v Chris Gammell>It's like when you start doing that sort of thing, when you have doing all the queuing

01:14:02.420 --> 01:14:07.780
<v Chris Gammell>of messages and handling Bluetooth stacks or Wi-Fi stacks and all that other stuff in there,

01:14:08.280 --> 01:14:13.740
<v Chris Gammell>nobody's like, I mean, I don't know, I'm guessing you're not writing Bluetooth drivers these days,

01:14:13.820 --> 01:14:13.980
<v Chris Gammell>right?

01:14:14.040 --> 01:14:14.960
<v Chris Gammell>You're probably...

01:14:14.960 --> 01:14:15.700
<v Chris Gammell>If I can avoid it.

01:14:16.080 --> 01:14:16.620
<v Chris Gammell>Yeah, right.

01:14:16.720 --> 01:14:19.680
<v Chris Gammell>I mean, like, and it's, and it, I'm just not sure it's a good use of time.

01:14:19.680 --> 01:14:25.220
<v Chris Gammell>And then from that point of view, rather than it's like, okay, well then, you know, do

01:14:25.220 --> 01:14:30.580
<v Chris Gammell>we go and buy an off the shelf driver from a, you know, a vendor and that, that might be

01:14:30.580 --> 01:14:31.180
<v Chris Gammell>the right answer.

01:14:31.180 --> 01:14:34.740
<v Chris Gammell>And then we kind of build everything around it, or we kind of more all in on a system that

01:14:34.740 --> 01:14:38.900
<v Chris Gammell>is, you know, based around, it's almost like networking first versus not networking first.

01:14:39.160 --> 01:14:42.080
<v Chris Gammell>Kind of like that might, that might be part of that biopification as well.

01:14:42.480 --> 01:14:42.580
<v Philip Johnston>Yeah.

01:14:42.580 --> 01:14:43.500
<v Philip Johnston>I think that makes sense.

01:14:43.640 --> 01:14:46.980
<v Philip Johnston>And I mean, networking seems to be almost ubiquitous now.

01:14:46.980 --> 01:14:51.940
<v Philip Johnston>I don't, I don't think I've worked on a project in five years that didn't have some kind of

01:14:51.940 --> 01:14:53.300
<v Philip Johnston>network protocol in there.

01:14:53.440 --> 01:14:53.540
<v Philip Johnston>Yeah.

01:14:53.780 --> 01:14:54.300
<v Philip Johnston>Yeah, exactly.

01:14:54.440 --> 01:14:58.940
<v Philip Johnston>And that's, again, I work on a small slice of the industry, but I just think that everything's

01:14:58.940 --> 01:15:01.300
<v Philip Johnston>increasingly connected based on what I'm seeing.

01:15:01.600 --> 01:15:03.240
<v Philip Johnston>And so that's probably more likely.

01:15:03.500 --> 01:15:04.940
<v Chris Gammell>Well, it feels free, right?

01:15:05.060 --> 01:15:10.860
<v Chris Gammell>I mean, like, like the chips are so cheap and assuming you could find them, it feels free,

01:15:10.980 --> 01:15:15.860
<v Chris Gammell>but then there's always that, that like mental overhead or just the, I mean, the, the real

01:15:15.860 --> 01:15:21.200
<v Chris Gammell>overhead of just like the code and all the thoughts of doing OTA over the air updates

01:15:21.200 --> 01:15:25.240
<v Chris Gammell>and, you know, doing all, all of the other management pieces and even then how it impacts

01:15:25.240 --> 01:15:26.820
<v Chris Gammell>your power draw and stuff like that too.

01:15:26.860 --> 01:15:29.260
<v Chris Gammell>It's just, yeah, it's just a huge, huge part of it.

01:15:29.260 --> 01:15:33.500
<v Chris Gammell>So lots of, lots of devices to be built.

01:15:33.600 --> 01:15:33.980
<v Chris Gammell>That's for sure.

01:15:35.820 --> 01:15:40.440
<v Chris Gammell>Let's talk a little bit more about your course and how people could find that.

01:15:41.120 --> 01:15:45.840
<v Chris Gammell>So embeddedartistry.com, what is, you know, what is the current offering?

01:15:45.860 --> 01:15:47.620
<v Chris Gammell>What people might want to jump into?

01:15:48.260 --> 01:15:48.740
<v Philip Johnston>Yep.

01:15:48.780 --> 01:15:50.460
<v Philip Johnston>You can go to embeddedartistry.com.

01:15:50.560 --> 01:15:52.820
<v Philip Johnston>We have our courses completed.

01:15:53.120 --> 01:15:57.320
<v Philip Johnston>There's the build system courses we talked about introduction to build systems using make.

01:15:57.440 --> 01:16:04.020
<v Philip Johnston>We have two courses on Mason, two on CMake, and then one capstone course, I guess you could

01:16:04.020 --> 01:16:09.420
<v Philip Johnston>call it where you take the build system that you've built up and refactored into a reusable

01:16:09.420 --> 01:16:15.320
<v Philip Johnston>module and set up the automation needed to start every project with that particular build

01:16:15.320 --> 01:16:15.700
<v Philip Johnston>system.

01:16:16.120 --> 01:16:19.480
<v Philip Johnston>We have a couple of courses that are available to our members.

01:16:19.580 --> 01:16:24.680
<v Philip Johnston>So we have, you know, a membership model, two different tiers, community memberships and

01:16:24.680 --> 01:16:25.800
<v Philip Johnston>educational memberships.

01:16:26.060 --> 01:16:27.720
<v Philip Johnston>We have a private community.

01:16:28.120 --> 01:16:32.420
<v Philip Johnston>I write a lot more for our members than I publish on the blog.

01:16:32.540 --> 01:16:38.980
<v Philip Johnston>I think we have 300 free articles and I probably have, I don't know, six or 700 pages for our members.

01:16:39.220 --> 01:16:40.300
<v Chris Gammell>Prolific is the word I would use.

01:16:40.300 --> 01:16:41.200
<v Chris Gammell>So you're a prolific writer.

01:16:41.500 --> 01:16:42.340
<v Chris Gammell>So it's very impressive.

01:16:43.100 --> 01:16:44.680
<v Philip Johnston>Been at it for a couple of years now too.

01:16:45.220 --> 01:16:48.000
<v Philip Johnston>And then, you know, members get access to some courses.

01:16:48.200 --> 01:16:49.300
<v Philip Johnston>You just can't purchase them.

01:16:49.400 --> 01:16:50.860
<v Philip Johnston>Other courses can be purchased standalone.

01:16:51.180 --> 01:16:56.680
<v Philip Johnston>So I've been writing about some of the lessons I've learned while consulting and sharing proposals

01:16:56.680 --> 01:16:58.620
<v Philip Johnston>and things like that with our members.

01:16:58.620 --> 01:17:06.800
<v Philip Johnston>I give people behind the scenes looks at how the infrastructure that, you know, we use on our, on our projects, such as our CI setup.

01:17:07.300 --> 01:17:13.920
<v Philip Johnston>I've been stalled on it, but I've been slowly working on the review of the Medtronic ventilator firmware that they released.

01:17:13.920 --> 01:17:14.140
<v Philip Johnston>Oh, cool.

01:17:14.480 --> 01:17:14.840
<v Chris Gammell>Yeah, yeah.

01:17:15.060 --> 01:17:15.380
<v Philip Johnston>And yeah.

01:17:15.380 --> 01:17:24.980
<v Philip Johnston>And then I'm working on three new courses, building testable embedded systems, designing embedded software for change and automated software quality enforcement.

01:17:25.720 --> 01:17:29.800
<v Philip Johnston>And so those are, you know, I'm still in the early development stages on those.

01:17:29.800 --> 01:17:35.820
<v Philip Johnston>I'm releasing content as I'm writing it and I'm trying to get feedback from mostly our members right now.

01:17:35.900 --> 01:17:40.960
<v Philip Johnston>But if people want to sign up for, you know, the pre-release courses, it's significantly discounted.

01:17:40.960 --> 01:17:50.440
<v Philip Johnston>And just as I'm producing new content and finding new model software and getting feedback from our, our students, we're just continually evolving those.

01:17:50.500 --> 01:17:53.700
<v Philip Johnston>And that's probably going to continue for the next six to 12 months, honestly.

01:17:54.120 --> 01:17:55.620
<v Philip Johnston>It's a lot of work ahead of us.

01:17:56.220 --> 01:17:56.340
<v Chris Gammell>Yeah.

01:17:56.640 --> 01:17:56.820
<v Chris Gammell>Yeah.

01:17:56.820 --> 01:17:57.120
<v Chris Gammell>That's great.

01:17:57.120 --> 01:17:59.040
<v Chris Gammell>And you said you have a business partner as well.

01:17:59.040 --> 01:17:59.520
<v Philip Johnston>Yep.

01:17:59.620 --> 01:18:02.220
<v Philip Johnston>My wife, Rosie, is our project manager.

01:18:02.380 --> 01:18:08.320
<v Philip Johnston>She was a project manager at Apple for 12 years from, I think, the first iPhone to the iPhone 8.

01:18:08.860 --> 01:18:09.080
<v Philip Johnston>Wow.

01:18:09.460 --> 01:18:12.560
<v Philip Johnston>And she does, you know, our internal project management.

01:18:12.740 --> 01:18:13.980
<v Philip Johnston>She's seen some stuff, huh?

01:18:14.260 --> 01:18:15.640
<v Philip Johnston>Oh, she's seen a lot of stuff.

01:18:15.920 --> 01:18:19.400
<v Philip Johnston>She managed a lot of problematic engineers like me from time to time.

01:18:19.400 --> 01:18:20.080
<v Philip Johnston>Right, right, right.

01:18:20.180 --> 01:18:23.420
<v Chris Gammell>Her primary concern is, yeah.

01:18:23.960 --> 01:18:24.180
<v Philip Johnston>Yep.

01:18:24.200 --> 01:18:25.880
<v Philip Johnston>So she does all of our internal projects.

01:18:25.880 --> 01:18:27.340
<v Philip Johnston>She edits everything I write.

01:18:27.340 --> 01:18:36.120
<v Philip Johnston>So, you know, everything anyone reads has been reviewed and edited by Rosie unless I was a bad engineer and published it without sending it to her.

01:18:36.620 --> 01:18:36.800
<v Chris Gammell>Yeah.

01:18:36.840 --> 01:18:38.520
<v Chris Gammell>You got to have that publishing pipeline, right?

01:18:38.560 --> 01:18:39.800
<v Chris Gammell>I mean, she's part of the checks.

01:18:40.200 --> 01:18:40.640
<v Philip Johnston>Absolutely.

01:18:40.640 --> 01:18:49.040
<v Philip Johnston>And then, you know, she consults too, although now with kids it ends up being a lot more of the internal management than external consulting.

01:18:50.160 --> 01:18:50.520
<v Chris Gammell>Great.

01:18:50.840 --> 01:18:51.020
<v Chris Gammell>Great.

01:18:51.700 --> 01:18:53.520
<v Chris Gammell>Well, Philip, it has been great talking to you.

01:18:53.560 --> 01:18:58.360
<v Chris Gammell>I'd love to have you back on to talk more about this stuff, especially as your courses continue to develop.

01:18:58.360 --> 01:19:04.100
<v Chris Gammell>And as I keep trying new things and flopping into things, I'm sure I'll have other questions for you.

01:19:04.160 --> 01:19:05.260
<v Chris Gammell>So thanks for joining us here today.

01:19:05.680 --> 01:19:06.060
<v Philip Johnston>You're welcome.

01:19:06.180 --> 01:19:07.020
<v Philip Johnston>Thank you for having me.

01:19:07.140 --> 01:19:08.780
<v Philip Johnston>And certainly happy to come back.

01:19:08.840 --> 01:19:11.260
<v Philip Johnston>And, you know, you can always send me the questions you have, Chris.

01:19:11.620 --> 01:19:11.900
<v Chris Gammell>Okay.

01:19:12.040 --> 01:19:12.340
<v Chris Gammell>Thanks.

01:19:12.400 --> 01:19:12.800
<v Chris Gammell>We'll talk soon.

01:19:12.800 --> 01:19:17.360
<v Chris Gammell>Bye.

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>

01:19:17.360 --> 01:19:17.360
<v Speaker ?>
