Better HN
topnewbestaskshowjobs
Log inSign up

tyhoff

190 karma · joined Dec 18, 2018 (7y ago) · 83 submissions

Co-founder of Memfault, a firmware delivery and monitoring solution for hardware products.

My background is in firmware development and 10-year goal is to modernize embedded software development.

Submissions

31.

A Simple Scheduler via an Interrupt-Driven Actor Model(interrupt.memfault.com ↗)

2 points · by tyhoff · 3y ago · discuss

32.

Integrating Memfault with AWS IoT Core and ExpressLink(interrupt.memfault.com ↗)

2 points · by tyhoff · 3y ago · discuss

33.

Debugging Android Devices(interrupt.memfault.com ↗)

4 points · by tyhoff · 3y ago · discuss

34.

Memfault (YC W19) Is Hiring a Data/Back End Engineer(ycombinator.com ↗)

by tyhoff · 3y ago

35.

Drafting a C Development Environment(interrupt.memfault.com ↗)

3 points · by tyhoff · 3y ago · discuss

comment 3y ago · link · parent

Good insights here. I'm going to steel a couple of notes here and update the post if you don't mind!

comment 3y ago · link · parent

Author of the post here - would love to hear about your trials and tribulations of building battery powered devices.

38.

Understanding battery performance of IoT devices(interrupt.memfault.com ↗)

93 points · by tyhoff · 3y ago · 37 comments

39.

Memfault (YC W19) Is Hiring an Embedded Linux Engineer to build our Rust SDK(jobs.lever.co ↗)

by tyhoff · 3y ago

40.

Matter, Thread, and Memfault(interrupt.memfault.com ↗)

2 points · by tyhoff · 3y ago · discuss

41.

Emulating a Raspberry Pi in QEMU(interrupt.memfault.com ↗)

4 points · by tyhoff · 3y ago · discuss

42.

Measuring Stack Usage the Hard Way(interrupt.memfault.com ↗)

3 points · by tyhoff · 3y ago · discuss

43.

Bazel Build System for Embedded Projects(interrupt.memfault.com ↗)

2 points · by tyhoff · 3y ago · discuss

44.

Zephyr Deep Dive: Ring Buffers(interrupt.memfault.com ↗)

2 points · by tyhoff · 3y ago · discuss

45.

C++17’s Useful Features for Embedded Systems(interrupt.memfault.com ↗)

2 points · by tyhoff · 3y ago · discuss

comment 3y ago · link · parent

<3 Me and a few others created this course in 2014. Glad you found it useful! I got so much joy out of the content creating the content for the lectures and labs.

comment 3y ago · link · parent

Hope you liked the course! I was the one who first made and taught the course. To my knowledge, it’s still a required course for all CS freshman and is still taught by students.

comment 3y ago · link · parent

You speak of such truths :D. It's a seriously under-documented knowledge gap on the Internet. There are an infinite number of Cortex-M4 MCU's but only a few I would recommend hardware companies actually use, primarily due to power consumption of production work-loads (sleeping and deep sleep) and the software packages that are bundled, both of which are generally not assessed before choosing hardware.

49.

Integrating Memfault into Bluetooth Devices(interrupt.memfault.com ↗)

3 points · by tyhoff · 4y ago · discuss

comment 4y ago · link · parent

It’s primarily about the number of hours. At Pebble, we’d be able to get a pretty good gauge on battery life with about 10-20 devices and about 24 hours worth of data. We recorded the battery’s percentage drop over the course of each hour, averaged all samples together, and then used that to estimate how long the battery charge would last.

This strategy is covered here: https://interrupt.memfault.com/blog/device-heartbeat-metrics...

Of course it’s better with thousands of devices, but we were always surprised how accurate it was (as long as we had a few Android users in the office - it reliably got worse battery life due to worse Bluetooth performance)

51.

Profiling Newlib-Nano's Memcpy(interrupt.memfault.com ↗)

20 points · by tyhoff · 5y ago · 2 comments

comment 5y ago · link · parent

These two commands ultimately do different things. `stg publish` was in the business of not force pushing and only committing the 'delta' between what lived on a branch and the currently applied patches, so that you can `git push [no -f]` to a branch.

Definitely cumbersome to use, but it had fair reasons to be cumbersome.

comment 5y ago · link · parent

Preface: I love Stacked Git and have convinced many co-workers to use it and they all love it. It's really great, especially when used with Phabricator!

---

A question for the maintainers...I was enjoying the command `stg publish` to allow myself to keep refreshing patches locally but every so often push to a branch that others non-stg users were pulling and pushing to. The command was removed in 1.0.

I'm curious why it was deprecated and removed and if there is a good replacement flow for working with non-stg users on branches I can't force push to.

comment 5y ago · link · parent

> Oh you sweet summer child

Should have clarified. On the embedded systems I work on, generally Cortex-M4, you set an MPU region on address 0x0 and it turns into a hardfault, so it's pretty easy to catch.

comment 5y ago · link · parent

Author here. Firmware, for better and worse, is stuck in C/C++ land, so many of the topics here are essential to keep a complex, multi-MCU, multi-board setup in working order.

I'm actually really curious what you all do in C/C++ to prevent bad operations from ever being performed in the first place.

For example, should we just change our internal malloc / free to use double pointers instead?

  bool malloc(size_t n, void **ptr) {
    *ptr = <memory>
  }

  void free(void **ptr) {
    ... <free>
    *ptr = NULL 
  }
This way, if anyone actually tries to use that pointer, it will crash the system (hardfault), instead of potentially using corrupted memory, which IMO is much worse.

comment 5y ago · link · parent

Author here! I don't think we are in disagreement, just mostly in different interpretations. You are talking about a car, with likely 200-300 embedded systems backed into it.

If the light sensor or the braking module goes into a completely unexpected state where it can no longer be communicated with, it has corruption, etc, you need to do something about it.

The solution isn't to reboot the car, it's to reboot the individual module and quickly get it back into working order. Rebooting the braking or lighting module should take on the order of milliseconds (if done correctly), and that is much, much better than having a piece of software in a corrupted state for seconds/minutes/hours.

In a car, there is a mothership board that is orchestrating everything, pinging every module, and ensuring everything is in working order. Just like a kubernetes setup, if any one piece fails to ping or looks off, just reboot it and get it working ASAP.

57.

Defensive Programming(interrupt.memfault.com ↗)

106 points · by tyhoff · 5y ago · 51 comments

comment 6y ago · link · parent

Memfault (YC W19) | Senior Full Stack Engineer, Senior Backend Engineer | San Francisco CA, Boston MA, Berlin Germany | Full Time

At Memfault, we're helping companies that build their own hardware automatically catch, triage, and fix issues in the field.

Unlike mobile or web developers, hardware engineers today do not find out something is wrong with their device until their customers start calling (or worse, tweeting). Memfault gives companies the initiative by providing a real-time view of errors their devices are encountering in the field, and infrastructure to deploy targeted fixes.

We're mostly ex-Fitbit, Pebble, and Oculus engineers. We know the industry well, and we are excited to solve the problems that we have faced endlessly for the last 10 years.

Open Roles:

* Full-stack Software Engineer (React, TypeScript)

* Backend Engineer (Python, PostgreSQL, AWS)

* Marketing Manager

* Business Development Manager

* Customer Success Manager

* Sales Development Representative

Launch HN for more context: https://news.ycombinator.com/item?id=20801512

Angel Jobs Page: https://angel.co/company/memfault-inc

If you're a web developer who happens to have a passion for or wants to learn more about embedded systems and hardware, we'd love to hear from you.

Feel free to reach me directly at tyler(at)memfault(dot)com

59.

Building Custom Drivers for Zephyr RTOS(interrupt.memfault.com ↗)

3 points · by tyhoff · 6y ago · discuss

comment 6y ago · link · parent

I find it most similar to bubble.io, which includes databases but also allows linking to external data sources like Airtable.
123