Loading 3D model… large boards can take a moment.
An open source alternative to the now-defunct Green Bean adapter to monitor and control GE appliances through their RJ45 port.
# Clone the repo
git clone https://github.com/puddly/casserole
cd casserole
# Setup a new virtual Python env (optional but recommended)
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Compile and upload the firmware to your ESP32
platformio run -t upload -v -e esp32 --upload-port=/dev/cu.SLAB_USBtoUART
# Run the host software and see what your appliance is doing
python protocol.py
I don't know much about building electronics but here are the parts I've used:
Wiring:
Vin pin and to the high voltage input of the bus transceiver.[insert proper diagram here]
The RJ45 (Ethernet) port on some GE appliances exposes a bus that allows for communication with the appliance's controller board. The three pins are labeled GND, COMM, and 9V.
The COMM bus uses 5V logic and is an inverted UART at 19,200 baud.
I've been unable to acquire an actual Green Bean module so all of the information here is based on what I can capture from my washing machine. Here is a sample packet:
e2 23 22 2d f1 03 f1 2e 0e 03 03 01 19 15 05 2a 00 0a f1 76 fc 0f 0a f1 39 01 03 f1 33 01 5d 9c 30 e3 e1
All packets begin with e2 and end with e3 e1 (although very rarely just e3). The byte e0 acts as an escape character and all instances of e0, e1, e2, and e3 in the body of the packet are escaped with e0 (so aa e0 bb e1 cc becomes aa e0 e0 bb e0 e1 cc).
Each packet has a simple structure:
(1 byte) e2. Everything after this but before the final e1 is encoded using the above scheme.
(1 byte) packet destination
(1 byte) total packet length (before the e[0-3] bytes have been escaped)
(1 byte) packet sender
(1 byte) command type
(? bytes) data
(2 bytes) CRC-16 checksum of the entire packet up until the start of the checksum bytes. It is a 16-bit CRC with the following parameters:
width=16 poly=0x1021 init=0xe300 refin=false refout=false xorout=0x0000 check=0x5b10 residue=0x0000 name=(none)
As before, this is computed on the packet payload before the e[0-3] bytes have been escaped. Interestingly, this specific CRC-16 has the following property:
crc16(packet_until_checksum || crc16(packet_until_checksum)) == 0x0000
(1 or 2 bytes) e1 e3, although very rarely a packet is sent (consistently) with e3 missing.
The packet command type determines how the data is interpreted. A command type of f1 is used internally for all reads/writes and has the following structure:
f1dataf0 is read, f1 is write.The Green Bean uses a different syntax for reads (writes TBD) for what it calls ERDs:
f001 for reads
No comments yet. Be the first to ask about this board.