Live data from Hacker News

Going in circles without a real-time clock

rachelbythebay.com

121–130 of 157 posts

Re: Going in circles without a real-time clock

#121
I think the last paragraph was my favorite part of this article.

For those of you who didn't read the fine article, I've quoted it here:

> As usual, this post is not a request for THE ONE to show up. If you are THE ONE, you don't make mistakes. We know. Shut up and go away.

Re: Going in circles without a real-time clock

#122
post #121

I think the last paragraph was my favorite part of this article. For those of you who didn't read the fine article, I've quoted it here: > As usual, this post is not a request for THE ONE to show up. If you are THE ONE, you don't make mistakes. We know. Shut up and go away.

I dunno, I've always found that to be a... less impressive part of the blog. When the author hits problems in her stack, anyone who would have caught it should shut up and stop being THE ONE. Fine, we've all run into people with big skills and bigger egos. But... the other half of her blog posts are her making snide remarks about how stupidly other people have set stuff up. To her (ex-)coworkers, she is THE ONE. So it leaves a sour taste in my mouth.

Re: Going in circles without a real-time clock

#123

The wireguard problem is a pain in the neck. Even if you're happy for your system to not have a realtime clock, when it does come online you'd want wireguard to not start until after the clock has synced to a timeserver. The below is what I'm doing at the moment, but I can't say I'm sure it's working - haven't seen wireguard start before the time is synced since doing it, but it could be probabilistic: systemctl enab…

That was my thought as well - if we know certain things need time to be in sync, can we use systemd dependencies to enforce that? I'm not sure it would help with OP's problem because that was more or less a circular dependency (time sync needed name lookup which needed time to be in sync), but it could mitigate some of the effects or at worst make the problem more explicit/obvious.

Re: Going in circles without a real-time clock

#124

It's surprising that it was left out. Ie, the workaround makes sense, but this is a peripheral that is sometimes built into MCUs themselves. For example, most (all?) STM32s include an RTC... with the caveat that if you are using them for canonical use cases, you will need external hardware in the form of a dedicated 32kHz oscillator, and possibly a battery. For a lot of micro-controller timing uses, they aren't requi…

RTC is just an electronically readable Casio watch, it's not even responsible for keeping real time while OS is running. All it does is always incrementing regardless of motherboard power state so to provide time as OS loads.

Re: Going in circles without a real-time clock

#125
I’m not sure this is related or not but if there’s one thing I’ve learned about complex objects (engines, computers, software, sewing machines, etc), it’s that every _custom_ thing you do to it has some kind of order of magnitude impact on the overall complexity of the machine, and thus, you should avoid customizing it. At least if your primary concern is usability vs solving specific problems.

It’s definitely served me well in a wide variety of disciplines.

Re: Going in circles without a real-time clock

#126

Earlier quoted context omitted.

You can use plain HTTP for time sync. Almost all HTTP servers respond with a time header.

The whole point of the exercise was to make it secure though. If you don't care about MITM attackers then NTP works great.

I don't get the supposed security aspect of getting false time. Hacker gives you 1980-01-01 or 4096-13-32 and mess up CRL and ruin your day...how.

Years ago I've tried privilege escalation exploit to play with a phone and it involved rolling back date to unexpire signature, so I know there is exploit potential, but it... it just feels like RTC bootstrap problem should be something solvable.

Re: Going in circles without a real-time clock

#127

I've personally had so many issues with SD card corruption on raspberry pi's that I've decided it was a mistake to even allow SD card disks I only ever use USB storage on my pi's now and not had a single issue since

Most SD cards for sale are not suitable for write-intensive random-access workloads. However, they do make SD cards that are intended for this, I've had very good luck with cards marked "high-endurance." They cost more, but they work.

I've always been amazed that the Foundation never mandated the use of validated brands or types of SD cards.

Not that it matters much to me, I've had to retire all of my Pis earlier than the 4. It seems that all of my Raspberry Pis prior to the 4 all had some sort of design issue with their power regulation. After a couple years of constant operation, they just start locking up randomly around once every day or so. I've had everything from a Pi 1 through 3 exhibit this behavior. I spent WEEKS troubleshooting this and conclusively ruled out wonky SD cards, power supplies, connected devices, proximity to other equipment, and every other factor I can think of. I found many threads with other people reporting the same issues but the Foundation refuses to acknowledge it as a problem. I only run Pi 4's now, and am gradually switching over to Intel N100-based systems for low-power operation.

Re: Going in circles without a real-time clock

#128
The Pi ecosystem is coming apart at the seams. Talk about falling off a pedestal.

By the time you buy everything you need to make a Pi 5 even remotely usable and reliable today, you'll have spent as much as a small form factor PC. What do you need?

  1. Special power supply - Yes, it's USB-C but it requires a high amperage 5V supply instead of accepting a higher voltage like most USB-C stuff
  2. Active cooler - Pi 5 throttles immediately without it; it's not an optional component
  3. NVMe Expansion HAT - Seriously why the fiddly little PCIe header? Put an NVMe slot on the bottom and let people adapt *that* connector
  4. RTC Battery - At least put a damn capacitor on the board
  5. Enclosure - I'm halfway expecting the pi foundation to print some dashed cut lines on the cardboard box so they can say it comes with a case =]
At the end of this you get a system that can run ... raspbian

Not like the Pi Foundation couldn't have contributed to uboot or the upstream kernel or anything before thier hardware was released. Pretty much nothing released for "Raspberry Pi" runs on a Pi 5 at this point in time.

They better try to salvage something before putting out the expected CM5, but I'm not expecting much.

Re: Going in circles without a real-time clock

#130
post #102

Earlier quoted context omitted.

Ah okay. Conversely I've never tried that setup :) Nice to hear about it though.

This is off-topic, but I was looking at your sbts-aru project and remembered having read the hackaday post on it about fireworks. I'm curious if you've ever seen the RaspberryShake BOOM sensor? If so, any thoughts on how your project and it differ? https://shop.raspberryshake.org/product/turnkey-iot-atmosphe...

I hadn’t seen that. It uses a pi so in principle it could sync the time the same way. How well related to localizable recordings would also depend on how it establishes the actual time arrival with the clock and how it deals with jitter.

Currently I only support USB mics at 16 bits that can talk to jackd. This was a conscious decision because it was all that was needed but also because jacks makes it essentially have multiple source sinks. Such as as well as recording a real time audio processing pipeline that potentially leads to real time gunshot and other sound event localization.

But it would be cool if the infrasound sensor had a USB sound interface. As then it could be useful in localizing elephants.

Post reply on HN