DuchkPy / Python2Ravelli

Add a way to drive Ravelli’s stove using python with an Esp8266 plugged on to the serial port.
GNU Affero General Public License v3.0
4 stars 1 forks source link

Ravelli Serial Port and Protocol #2

Open HighMarck17 opened 10 months ago

HighMarck17 commented 10 months ago

Hello, I saw your project for interfacing with a Ravelli stove. Great work! I have an “HR160 SNELLA” model, and I’d like to automate it. I found some 4-pin serial ports, but I don’t have schematics to understand the type of port it is; I would need to run some tests. Also, I don’t know what serial communication protocol these stoves use. Could you help me with some information?

DuchkPy commented 9 months ago

Hello @HighMarck17, First of all, I need to apologize for lead time to answer you. I didn't received any notification from GitHub, so I missed it. Anyway, I will try to support you us best as possible, from now on.

Their is a port called "remote", the one where you can plug your remote to drive the stove through it (and where you installation technician parametrize the stove).

Also, I don’t know what serial communication protocol these stoves use. Could you help me with some information?

What do you mean by this ? I'm not an electronic expert, and don't see the different serial communication protocol possible.

HighMarck17 commented 9 months ago

Thank you for your response @DuchkPy! I found a serial port behind the display's PCB, but I couldn't find any schematics to identify the pins (VCC, GND, TX, RX). My goal is to connect it to either an Arduino or a Raspberry Pi. I was also wondering if they use a proprietary communication protocol with custom commands. Can I connect it directly to the Raspberry Pi?

DuchkPy commented 9 months ago

@HighMarck17, The best electronic schematic I found on manual is this : https://eng.ravelligroup.it/wp-content/uploads/01_product_documents/R-evolution%207%20N%20S%20(049-00-001A)/5.1-Manuale-Ravelli_R-EVOLUTION_7.pdf (page 61)

Regarding the schematic of the wire harness and the connector, I was expecting that this was enough: image With 1 is +5V, 3 is signal and 4 is ground

I wasn't able to plug the GPIO of Raspberry or ESP directly to the stove (I didn't tryed with Arduino). As the Rx and Tx are on the same wire. That's why I created this schematic, to combine/split Rx/Tx.

HighMarck17 commented 9 months ago

Thank you, @DuchkPy! I will give it a try! I noticed from your code that the baudrate should be set to 4800, correct? Thanks again! I'll keep you updated with the results

DuchkPy commented 9 months ago

@HighMarck17

the baudrate should be set to 4800

Yes. I measured the signal between stove and remote, and it was that rate. So I considered the same. I didn't try any other.