Better HN
topnewbestaskshowjobs
Log inSign up

linuxlizard

1,075 karma · joined Nov 29, 2010 (16y ago) · 317 submissions

Firmware engineer at Cradlepoint (part of Ericsson) working on WiFi and GPS. Formerly engineer at Marvell doing MFP scan firmware.
Submissions

comment 11y ago · link · parent

I worked on some safety critical systems in C. The philosophy was treat the code like a little person running around. The person (the code) always wanted to know where the fire escape was. The fire escape always needed to be very easy to use and very reliable. Every function had little fire escape handler to clean up on error. Higher level functions had to decide how to put out the fire (speaking metaphorically here but we really could have started fires) or to raise the alarm to a higher level.

At the very top level, the only thing we could do was save a log then reset (least worst option). Too many resets too fast and we'd take ourselves offline and scream for a human (again, least worst option).

comment 11y ago · link · parent

While address space is huge, RAM isn't infinite. Our embedded Linux runs out of memory quite often. Or if the swap space fills up on a server with a disk.

I've spent many hours chasing corrupted memory due to someone not checking malloc() fail.

I chased code that boiled down to assert( ptr=malloc() ); Guess what happens when NDEBUG is defined?

comment 11y ago · link · parent

What sort of C programmer wouldn't test for malloc() failing.

Drives me batty to see articles where malloc() is happily assumed to always succeed.

comment 12y ago · link · parent

"None of Idaho’s most-searched dishes are built around its most famous crop, the potato. We choose to assume that Idahoans know their potato preparation techniques and don’t need online refreshers."

Damn right we do. :-)

comment 12y ago · link · parent

Like me! Except for the brilliant part.

comment 12y ago · link · parent

Dagnabbit. 33.1.1 not working for me. Chrome works. (OSX 10.9.5)

comment 12y ago · link · parent

Why not ROT13? Or a simple substitution cypher?

Not trying to be silly. But if the only goal is to prevent man-in-the-middle attacks such as someone mangling the data, why not "corrupt" the data such that the phone company in the middle can't read it?

You control both ends. You can make your own "security".

You're not explicitly worried about security. You're not worried about Evil Person reading your messages. You just want your carrier to stop f'ing with your data.

If the data is slightly corrupted so the carrier's crappy software can't recognize it as http headers then the carrier's software (hopefully) won't fck with it.

comment 12y ago · link · parent

The Arduino embedded C library (which I'm assuming they're using) isn't as rich as a Glibc or uclibc. Sometimes I have to fall back on very old school methods to build complex strings.

comment 12y ago · link · parent

Thank you!

comment 12y ago · link · parent

"* Vexed by crippling anxiety about whether you're going to be laid off"

Sounds like a regular normal day at an American company.

comment 12y ago · link · parent

How do you define "user computer"? We run a bazillion tests on our stuff during manufacturing. Stuff is plugged in/out of Windows boxes over and over on the manufacturing line.

It's hard to tell where that "last step" might be. Boxing? Shrink wrapping? Delivery to Amazon's warehouses?

Our ASICs have efuses to disable insecure firmware changes. (Need insecure fw updates during fw development.) During dev we wind up having to scrap parts because we blew the fuse prematurely.

It's a tough logistical problem.

comment 12y ago · link · parent

I smell a software product opportunity for OSX / Windows.

comment 12y ago · link · parent

I work on printers. We've done useful things with our USB to make them appear as mass storage (drivers stored on the printer--no download necessary). Once the driver installed, we switch over to a printer+scanner profile.

If we can pretend to be a mass storage, we could pretend to be a keyboard/mouse, too. It's a small matter of firwmare.

comment 12y ago · link · parent

Tricky part is finding a bug in the firmware after release. If locked out, then can't update the stuff in the warehouses. Would need to scrap all parts in inventory, potentially costing hundreds if not thousands of dollars.

comment 12y ago · link · parent

Why not something like a USB Firewall?

Black/white list vid/pid (which are easily faked, yes). Closes the door a small amount.

But can also blacklist all HID.

comment 12y ago · link · parent

Embedded firmware engineers are so conservative I bet the firmware for tricorders will be written in C.

comment 12y ago · link · parent

While I dislike #if/#else/#endif, dynamic libraries rarely exist in embedded systems.

Using many small object files is my solution of choice but it pushes the if/else/endif problem into the Makefile instead.

comment 12y ago · link · parent

Thanks for the runbox.com mention. That looks like just what I need for my server.

comment 12y ago · link · parent

> momentary contact button is technically extremely simple

Don't forget debounce. Debouncing can be tough. http://www.ganssle.com/debouncing.htm

comment 12y ago · link · parent

Obligatory XKCD apropos to "bare hands." https://xkcd.com/538/

comment 12y ago · link · parent

NextStep, yes. The first time I saw Win95 (Chicago beta), I decided it was a rip-off of the NextStep UI.

comment 12y ago · link · parent

The Smithsonian Institute (Washington DC, USA) has a walking model along the capital mall.

Our local (Boise, ID) Discovery Center has a model, too. Fun stuff!

comment 12y ago · link · parent

That board is so cool. Want!

comment 12y ago · link · parent

Yeah, tools from hardware vendors are notoriously awful. Embedded debuggers (JTAG) are almost always terrible, too.

comment 12y ago · link · parent

All excellent advice. I especially like #4,5.

comment 12y ago · link · parent

Yes! This please, yes!

Your body is not just the carrying case for your brain. Your brain is an integral part of your body. Taking care of your body is taking care of your brain.

Depression often follows not taking care of yourself. If your body is suffering your brain (emotions, intellect) suffer along with it.

Sleeping enough, eating well, exercise is necessary for healthy emotions as well as healthy body. May seem boring but I think of it as fundamental background work to keep the entire system working well.

comment 12y ago · link · parent

I see a potential market for a mechanical device that automatically covers up the license plate when the car is parked & turned off.

Pull into parking space in the mall. Cover up your license plate. Or, better yet, put an image of random numbers.

Ta da!

comment 12y ago · link · parent

Your ideas are intriguing to me and I wish to subscribe to your newsletter.

comment 12y ago · link · parent

Yes, please!

Even with recurring annual charges (e.g., DropBox), I like getting notification that I'm about to be charged. With new charges after a trial, it's even nicer because it's a reminder that this thing is about to start costing me money. Sometimes I sign up, try it, and then forgot about it (usually something I need occasionally like proXPN).

comment 12y ago · link · parent

"Per company policy you have been denied access to the URL: http://fakenamegenerator.com/

Reason: Not allowed to browse Questionable category"

Now I'm REALLY curious!

1
7891011