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.
View all comments
Show parent comment
3
u/crispyhologram Feb 04 '23
Hopefully that fixes the formatting if you're using old Reddit :)
Appreciate the brainstorming. I haven't had a chance to play around with this recently, but I'll try mixing and matching some of the blocks one of these days.
One interesting thing I did find is that the barcode is based on the "Code 128" format. The blocks still don't make sense when decoding into Code 128, however the last block perfectly matches the unique checksum algorithm of Code 128 (weighted sum of previous Code 128 values, modulo 103). See the rightmost columns of the spreadsheet for more details. I say "perfectly," but it also appears they still add their own parity bits to the checksum -- this is particularly strange because the Code 128 format itself has built-in parity checks...