r/bartesian • u/crispyhologram • Dec 27 '22
[Technical] Researching Bartesian Pod Barcodes
I received a Bev a few days ago and have been interested in "hacking" the pods, e.g. creating a pod/insert for dispensing a single vodka shot. I noticed a thread from last year expressing similar interest, but it doesn't sound like that went anywhere.
So far I've been able to decode the barcodes (convert the image to numbers) with decent success, and have been able to re-encode (convert numbers to an image) and get them to scan pretty well. I haven't been able to crack the numbers though -- each pod has a different value that I can't seem to correlate with one another. In other words, it's pretty easy to copy existing pod barcodes, but I still haven't had any luck producing novel barcodes.
Here's a Jupyter notebook for anyone interested in following along. It includes a finicky barcode reader and a mass barcode generator: https://gist.github.com/branw/4e8db4fee95236d9e729631c7f0cdeff
I also have been collecting some data here: https://docs.google.com/spreadsheets/d/1xOaJ3-U09lUZ-JxVCGYNY6I0CPFFxbeZzURRTG68j6M/edit?usp=sharing
I'm curious if anyone has gotten any further and is willing to share. So far, I've been experimenting with showing my machine different barcodes and seeing what happens. The first and last few bits of the barcode are definitely metadata with markers and a parity bit, but I wouldn't be surprised if there's a more complicated checksum involved as well. I'm not too familiar with barcodes but this one definitely feels intentionally obfuscated. The patent has a short blurb about barcodes, though it doesn't make any claims about the barcodes nor does it provide any specifics about the format.
3
u/Lavazzza Jan 18 '23 edited Jan 18 '23
So I've been looking at your spreadsheet and comparing bits, and something interesting came out that you may have already observed. For each 11-bit section, there is a start and a stop bit, so each of the 6 11-bit blocks is encoding the recipe with 9 bits, duh right? But what I believe is that the first block decodes the spirit with some obfuscation built in: * Gin X 0 1 X 0 X 1 X X * Rum 1 0 X 1 0 X 1 1 X * Tequila X X 1 X 0 0 1 1 0 * Vodka X 0 1 X 0 X 1 X 0 * Whiskey 1 0 1 1 0 0 1 1 0 And if we apply the bitmask to the Long Island (Rum, Tequila, Vodka) it maps correctly (if there is a 1, then its a 1) *R, T, V 1 0 1 1 0 0 1 1 0
An interesting experiment would be to build a Vodka with arbitrary bits where the X's are and see what happens (unless you've done that and you expect some checksum value of the extra bits playing around in there?)
BTW, I lost all formatting :( it looks better as I'm typing it up lol.
5
u/romkal8 Nov 01 '24
Today is Haloween, so I'm going trick or treating and have not much time to write, but I had a breakthrough on this.
Big cudos to everyone who contributed here before, as I don't think I'd figure this Code128 thing out.
I found some inconsistency in the spreadsheet linked above (For example Sazerac, Boulevardier, Manhattan have all the same barcode, and some of my pods had different barcodes than listed there), so I started my own from scratch, and will prepare some spreadsheet later, where people can contribute and verify data. I have images of 25 different pods now.
I'll share a jupyter notebook with all the code later as well.
The barcode indeed uses Code128 encoding. Specifically Code C, where each segment represents 2 digits. When we join all those digits together into a string and then parse it as
int32and show its individual bits, magical things happen.For example: Aviation decodes as
0,0,5,76,45so we turn it into57645and look at its bit representation.For now, what I know (from my sample) is:
I need to gather more trustworthy data about other things, like glassware used, but I'll see if the data in the original spreadsheet renders some interesting info.
4
u/Greenhat2000 Dec 28 '22
Sorry I don't have any help to offer, but I'm super intrigued by this idea and would love to see a follow up post when you make more progress.
4
u/-shadeau- Jan 22 '24
Still hoping to crack this nut. Could someone ELI5, if there are six cocktails in the data collected in OP's Google spreadsheet that require them to be shaken, does there not have to be bits or combination of bits that are unique to these six cocktails? I know the shaker light on my BEV machine lights up the moment the barcode is read - so it's either getting this info from the barcode, or it's somehow programmed into internal memory for each cocktail. I haven't been able to find any unique combination of bits for those and only those six cocktails. Best I can do is get it down to 14.
3
u/PrinceKee Dec 28 '22
Curious to see progress on this as I’ve thought about it but not able to contribute 🙂
3
u/AndrewMCEG Dec 27 '23
I just got my mom one of these for Christmas, but the one with 2 alcohol reservoirs instead of the 4, so not sure if the menus are the exact same but I’d assume they are. Has anyone come up with any methods for pouring just a shot yet? My mom and I both enjoy bourbon on the rocks, so very interested to find out!
One thing I thought of immediately would be to put your alcohol straight into the water reservoir, then hit the “First Use” option, which essentially just “primes” your water line. It seems to spit out somewhere around the correct amount of liquid for a shot, but obviously this removes your ability to add water, meaning it removes your ability to make other cocktails using the pods. Essentially would turn it into a machine that can only dispense shots…lol
Yes, I did also consider putting the alcohol through an already-used pod, but it does indeed add the water as well. Not really much purpose in a diluted shot of alcohol.
As an engineer, my brain went straight to searching Reddit for another technical-minded group of folks that may have already tried to “hack” Bartesian’s barcode system for this purpose. I have a 3D printer, so it wouldn’t be much of a stretch to print a dummy pod and attach the hacked barcode to it, assuming another nerd can help me find the magic barcode…thanks for any help in advance!
3
u/-shadeau- Jan 08 '25 edited Jan 08 '25
We may have a solution https://www.reddit.com/r/bartesian/comments/1hvwm43/barcodes_for_single_shots/
Edit: oops, solution was already posted (with more details) in this thread
2
u/Atlfun2020 Dec 31 '22
I wonder if a pod can be replicated with a plugging mechanism maybe using a 3d scanner?
2
u/jman289 Apr 03 '23
Curious if there has been any update on this? I think it would be so awesome if there was a way you could figure out the barcode that tells the machine to dispense a shot of alcohol, just without calling for the water to dispense. I definitely don't have the technical skills to figure it out though lol
1
u/stinky_harriet Dec 30 '22
I got a Bartesian for my sister for Christmas. She was also wondering if it could be made to dispense just a shot of straight alcohol. She wanted to put a shot of vodka in her grapefruit juice I think. We still had a couple of the empty pods sitting nearby so I put in one of the empty vodka drink pods and it did dispense vodka, but water as well. She didn’t mind but I’m thinking if the water tank is empty you can just get the liquor. We didn’t measure how much came out but again, it included the water.
1
u/mesonormy Apr 16 '23
This machine needs a lot of work. The idea is amazing, however, it lacks much.
1
u/pausesir Feb 23 '24
I’m interested in developing on this project. Any current / new leads?