News for hackers. Stuff that matters.
Re:I reverse engineered McDonalds’ internal API by Dylan16807 on Thursday October 22, 2020 @04:11PM (#24862780)
Four to five hours, so let's say that happens daily and machines are out of commission 20% of the time.

Currently it's early afternoon and the site says that over 8% are out.

That's about halfway between "all overnight" and "all at completely random times".

Are almost half of the clocks set wrong? Assuming that the actual number of broken machines is relatively small.

Re:I reverse engineered McDonalds’ internal API by cdirkx on Thursday October 22, 2020 @04:31PM (#24862975)
The machines still get taken apart and washed by hand, along with some maintenance, every 14 days. So every machine will additionally be off for an afternoon every two weeks.
Re:I reverse engineered McDonalds’ internal API by nend on Thursday October 22, 2020 @04:42PM (#24863086)
So it's basically a perpetual stew ice cream for 14 days? https://en.wikipedia.org/wiki/Perpetual_stew
Re:I reverse engineered McDonalds’ internal API by cdirkx on Thursday October 22, 2020 @05:35PM (#24863556)
Basically, yeah. They get refilled multiple times a day, and it's continually stirred, but only completely emptied during maintenance.
Re:I reverse engineered McDonalds’ internal API by dmix on Thursday October 22, 2020 @09:08PM (#24865104)
Picture of the mentioned 46yr old (beef) strew mentioned in the article: https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2F...

I'm not sure what material it's on to keep it heated. But something like coal I assume.

Re:I reverse engineered McDonalds’ internal API by SamBam on Thursday October 22, 2020 @09:02PM (#24865069)
I would imagine this is what any industrial ice cream production that's making pints for grocery store freezers would look like.
Re:I reverse engineered McDonalds’ internal API by curryst on Friday October 23, 2020 @11:23AM (#24870433)
Are perpetual stews sanitary? I'm probably misjudging, but the idea of anything being out in the open for that long makes me uneasy. I guess it's kept at a simmer, so bacteria can't grow?
Re:I reverse engineered McDonalds’ internal API by shadowgovt on Thursday October 22, 2020 @04:17PM (#24862836)
I'd be willing to wager that half the clocks might be wrong. It's something manager-on-duty can control, so Murphy's Law kicks in.
Re:I reverse engineered McDonalds’ internal API by dcolkitt on Thursday October 22, 2020 @04:32PM (#24862984)
A standalone GPS NTP server is $750 retail. Commercial soft serve ice cream machines are at least $4000. Just building the machines with an autonomous GPS clock that doesn't need to be set, would double the revenue but only increase the upfront cost by 18%.
Re:I reverse engineered McDonalds’ internal API by nixgeek on Thursday October 22, 2020 @04:47PM (#24863127)
Since they need internet connectivity to phone home status to McCloud, I don't know why they wouldn't just run an NTP client to keep their time synchronized and accurate?

Moreover the $750 you reference must be a commercial product since you can do GPS on a Raspberry Pi for < $50 easily? Which product are you thinking works for this scenario? Think I've seen everything from $300 to $13000 solutions for this over the years.

Re:I reverse engineered McDonalds’ internal API by kelnos on Thursday October 22, 2020 @07:29PM (#24864456)
I doubt these machines are internet-connected. Most likely is that the store manager notices the machine has gone into its cleaning cycle and manually marks the item on the menu as unavailable.
Re:I reverse engineered McDonalds’ internal API by joezydeco on Thursday October 22, 2020 @05:02PM (#24863258)
You could have a cesium time source in the thing but if the service tech or manager sets it wrong...you're still borked.
Re:I reverse engineered McDonalds’ internal API by OJFord on Thursday October 22, 2020 @06:25PM (#24863936)
But exactly the same borked each and every day!
Re:I reverse engineered McDonalds’ internal API by travisjungroth on Thursday October 22, 2020 @11:14PM (#24865718)
Or a G Shock with radio based time correction is $90. Not saying you could use the watch, but maybe the receiver is available.
Re:I reverse engineered McDonalds’ internal API by tmearnest on Friday October 23, 2020 @05:27PM (#24874384)
And use some computer vision on the raspberry pi to read off the time? I love it! This is why they don’t let me work on hardware.
Re:I reverse engineered McDonalds’ internal API by dkn775 on Thursday October 22, 2020 @11:25PM (#24865771)
Can you provide some information as to how I could do a cheap GPS setup for a non GPS iPad in a similar manner?
Re:I reverse engineered McDonalds’ internal API by _-___________-_ on Friday October 23, 2020 @08:35AM (#24868771)
I think you can do TTL serial on the headphone jack? Just hook a uBlox module up there (or use Bluetooth)
Re:I reverse engineered McDonalds’ internal API by K0balt on Thursday October 22, 2020 @04:39PM (#24863065)
If it was being integrated, the cost would be more like 5 dollars, since the ntp unit could just be an esp8266 chip that connects to the store wifi to sync the time.
Re:I reverse engineered McDonalds’ internal API by rkagerer on Thursday October 22, 2020 @05:25PM (#24863470)
If they can't manage to set the time what makes you think they'll connect the Wifi?

(...although in fairness some of the other comments here suggest the things might already have some kind of int[er/ra]net connectivity in which case no extra hardware required)

Re:I reverse engineered McDonalds’ internal API by Nexxxeh on Friday October 23, 2020 @08:34AM (#24868762)
Have them log onto the free public McDonalds WiFi on first boot, and auto-provision themselves to the correct private WiFi?
Re:I reverse engineered McDonalds’ internal API by curryst on Friday October 23, 2020 @11:41AM (#24870665)
That sounds like an awful lot of work to not send NTP requests over WiFi. Then again, I'm sure someone will inevitably find a way to make these things spray ice cream everywhere over WiFi if they do. Or worse, mess with the internal temperature or cleaning settings to make them not safe to consume.

It's actually probably best they never touch the public wifi. I don't know why no one has mentioned ethernet yet, though. These machines are static, they just sit there. There's already tons of wiring going everywhere, so I would assume that it should be relatively easy to get a cable drop to the ice cream machine. Then you don't have to worry about any of this wifi security. You could do port level security, but that's probably overkill for an edge network.

I have actually been wondering lately why there isn't more of a market for some of these things that it seems like you could hack together. There has to be something I'm missing. You'll never be a unicorn, because most of these kinds of sensors have a limited scale, but it seems like a good return on investment for a small team.

Re:I reverse engineered McDonalds’ internal API by Scoundreller on Thursday October 22, 2020 @04:47PM (#24863125)
Add a couple hundred/thousand to penetrate the roof for an antenna to pickup signal.

WWV might be a better system, but runs you into time zone issues. Do you need a valid SIM to pickup time from 3G?

Re:I reverse engineered McDonalds’ internal API by red0point on Thursday October 22, 2020 @05:32PM (#24863519)
I don‘t know about 3G, but I just checked for LTE [1] and the timing is broadcasted in SIB16, which is not encrypted, so theoretically anything could pick it up.

[1] https://www.etsi.org/deliver/etsi_ts/136300_136399/136331/11...

Re:I reverse engineered McDonalds’ internal API by reaperducer on Thursday October 22, 2020 @05:11PM (#24863347)
WWV/WWVH might not be a great idea, as I've read that there are rumblings about phasing it out.

You used to be able to pick up a time signal almost anywhere in CONUS with an FM receiver. It was encoded in the transmissions of PBS television stations.

This was back in NTSC days. Now that everything is digital, I don't know if it's still true.

Re:I reverse engineered McDonalds’ internal API by jcrawfordor on Thursday October 22, 2020 @08:21PM (#24864846)
The specification was called XDS and was developed by Sony to automatically set the clocks on their VCRs. PBS was a major participant but some other networks included XDS timecodes as well. Unfortunately late in the systems life reliability became poor (the encoder was not integrated with any of the other station equipment and was not being modernized) and I assume they all died out with the digital transition.

A better source today would be the time codes sent out by some FM radio stations with RDS encoders, to allow car radios to set their clocks. Unfortunately not that many radio stations do this and, once again, the time is not always all that reliable since the RDS encoder may not have any synchronization source itself.

The cellular network used to be an excellent source, CDMA cells required GPS time sync for TDMA reasons (well, CDMA reasons, technically speaking...) and broadcast a time code that is directly off of their GPS time source. Unfortunately, while GSM cells (and LTE) do broadcast the time, there is no guarantee made of precise synchronization as they don't broadcast a time code directly from their GPS source (not an expert in this field but I think the GSM/LTE time information comes from the possibly remote controller rather than the local radio hardware). Still, it would probably be good enough for this application.

GPS time sync is actually quite cheap to implement these days but tends not to work in these scenarios since a clear sky view is needed. WWVB is possibly on the way out. SNTP is probably ruled out less by the BOM cost of WiFi hardware and more by the deployment pain of having to get kitchen equipment configured for the corporate WiFi network.

Here's a fun idea: McDonalds presumably centrally controls the in-restaurant audio. Could they encode timestamps into the background music in a way that machines can cheaply recover? You wouldn't need high reliability, just enough for it to work once in a while. The old-ish Nielsen Peoplemeter system would be a model.

Re:I reverse engineered McDonalds’ internal API by nullsense on Thursday October 22, 2020 @07:32PM (#24864488)
They need to load balance them so the world can have HA soft-serve. Run them in a Kubernetes cluster.
Re:I reverse engineered McDonalds’ internal API by EE84M3i on Thursday October 22, 2020 @09:39PM (#24865229)
Chick-fil-a actually has been running kubernetes at all their stores for a few years.

https://medium.com/@cfatechblog/bare-metal-k8s-clustering-at...