esp32-jura icon indicating copy to clipboard operation
esp32-jura copied to clipboard

Sensor readouts?

Open orcinus opened this issue 4 years ago • 2 comments

Not an issue, just a question:

The old Jura protocol allowed reading out the sensor values and stats, i believe. Is that possible with the new protocol too?

orcinus avatar Dec 20 '20 00:12 orcinus

Yes, it is possible, but it is encrypted (I think). You can control the coffee maker when you perform the first layer of obfuscation like described in the README.md.

But as soon as you want to do special stuff like reading sensor values or reading the current state you have to understand the "encryption".

I sniffed a handshake between the coffee maker and the wireless dongle here. They seem to exchange some kind of key (80 Bit), I guess a 64 bit symmetric DES key with two additional bytes.

Why DES you might ask? Well, it's the only method I'm aware of that remotely fits into the 80 bit exchanged. And it's a symmetric encryption.

The exchanged keys always stay the same and you can replay them if you want to.

Here are a few snoops from stuff I sniffed when ordering something via the app that got send to the coffee maker. https://github.com/COM8/esp32-jura/tree/master/protocol

COM8 avatar Dec 20 '20 08:12 COM8

Ah! Got it. That's a nice bit of detective work!

orcinus avatar Dec 21 '20 00:12 orcinus