Keurig Connect is done using P1

Port 5683

Maybe you can share some of the package content with us?

Excellent. Thanks!!

honestly there really wasn’t a lot. When i first signed up to get the device they asked a lot of questions about how i was with technology. The device came with a paper that told me to download the Keurig connect app and follow the directions. Which is just to enter an email, make a password and enter a code i received in an email 2 days before the device arrived. I then set up the wifi like a photon device gets connected and thats it.

So i am finally getting a chance to sit down and try and fine some code to run on my Arduino or photon in order to monitor and print out what the serial line is sending from the keurig to the P1. However i’m realizing my uno r3 shares the pin 0 and 1 (tx/rx) with the usb so i wouldn’t be able to have it print out on the serial monitor on my pc. So the best thing would be to use my photon and have it receive and print it somewhere. Any one know of a code that simply monitors/sniffs via the RX and prints to something like a google doc file?

@Tomforti, you could use SoftwareSerial on you Uno to monitor the P1 and the USB serial for your PC!

Ahhhhh forgot about softwareSerial, there example actually does exactly what i need it to do.
https://www.arduino.cc/en/Tutorial/SoftwareSerialExample
I will give it a go tomorrow. I quickly looked at the documentation but see nothing about grounding the Uno and the P1. Any one know if its needed?

1 Like

Yes, there must be a common ground between the devices or the serial connection won’t work.

1 Like

Alright so connecting up to the tx line from the P1 showed that nothing is sent from the P1 to the keurig at all. Connecting up to the RX on the P1 did give me something however I’m not sure what baud rate to use. Switch though a few I found 9600 seemed to give me the most with out any “?” It’s hard to tell though because outputs are all numbers there’s no letters at all. So either that’s how it is or I’m using the wrong baud rate. Ideas?

@Tomforti, 9600 baud is very likely - not too high and not too low. Do you see any repeating patterns?

This is the serial.print out (tried serial.write but no matter what baud i use i get nothing usable)
I had the P1 connected while i did all this testing so i am sure they saw the machine turn off about 100 times and about 20 cups of coffee/water so i am sure there pissed off at me right now because it will prob mess up their survey. Opps thanks for the P1 though :wink:

When machine is turned on
0311304704101201201209010000000000001850
(My SN is not within this, i checked and actually expected to find it (checked other baud rates and didn’t find it anywhere)
when turned off get
03230
hot water start 4 oz
0433832
When Done
0363196
hot water start 6 oz
04332432
when Done
0363198
Coffee start 4 oz
043300
when done
0363196
coffee start 6 oz
0433160
when done
0363198
Low water
031333

This is when a Saleae Logic 4 would be a great toy to have!! I can at this point say anyone looking to get what date is coming from the V2 can simply connect ground to black and RX to green and read away, being no information is being sent to the machine from the P1. I’m bummed that no commands were being sent to the machine.

@Tomforti, looks like the initial string is an ID of some kind, most likely unique but not tied to the serial # as you say. Looking at the numerical values, all start events begin with “433” and:

hot water 4oz  832
hot water 6oz  2432
coffee 4oz     00
coffee 6oz     160

Then the completion events begin with “0363” and:

hot water 4oz  196
hot water 6oz  198
coffee 4oz     196
coffee 6oz    198

The stop events for each size are the same but not so for the start events.
The rest of the codes (low water, power on/off) all start with 03. So it doesn’t look like there are any time elements, only start and stop event status. :smiley:

Maybe later I’ll send a string back and see if it will give me a cup of coffee haha

1 Like

I guess I do get something for doing the study. Just got an email from them.

“Thank you for being part of the Keurig® Study and connecting your Wi-Fi module. At the top of this email, you will find a discount code for $100.00 for use on Amazon.com”

1 Like

Ohhhh… Five Photon’s!

1 Like

If only Amazon had them :frowning:

So in the end it is a usage study enabler is what I gather. Still very cool, maybe you could “extend” their work and sell it back to them. A DO button for brew or even better fire the IFTTT event when the alarm is no longer snoozing/phone is moving/whatever. Pretty sure the GF would love to have our Sense fire off the Keurig when it knows she’s awake!

if (time > 6 && time < 7 && ldr > 5000) Particle.publish(“brew”); :slight_smile:

1 Like

Any more developments on this?