Connect an Opentherm Gateway to a Raspberry Pi

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

MarFan
Starting Member
Starting Member
Posts: 15
Joined: Wed Sep 04, 2013 8:54 am

Connect an Opentherm Gateway to a Raspberry Pi

Post by MarFan »

Hello,

I want to connect an OTgw to an Raspi, are there any HowTo's for :

1. Install the OTgw on a RasPi
2. Install a the OTmonitor on the RasPi ? (I believe you can use VNC to see the monitor remote ? Or are there better solutions)
3. How can I read/write data using script's or whatever ?? I want to intergrate it to Domoticz.

Thanks,
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by Digit »

Before you connect the OTGW to a RPi, remember that the GPIO is not 5V tolerant, it's 3.3V
Maybe it's simpler to use a RS232 > USB thingy to connect it, or Ethernet-enable the OTGW by losing the MAX232 and use a TTL to Ethernet converter, I did that once. Or a TTL to Wifi... whatever suits you best.

Yes, you can use scripts or whatever to process the data on the RPi, with whatever you prefer, as long as it runs on Linux.
The only thing you have to do is create the code... :wink:
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by Noel »

Maybe it's simpler to use a RS232 > USB thingy to connect it
Use a Sweex USB to Serial Cable adapter ( http://e2b.org/7j )
The Raspberry Pi will see it as /dev/ttyUSB0
--
Maak nu je eigen video bericht online.
Anyone interested in time travel meet me here last Thursday!!
ıɟ ʇ,uɐɔ noʎ buıɥʇʎuɐ ʇɹɐʇs ɹǝʌǝu
MarFan
Starting Member
Starting Member
Posts: 15
Joined: Wed Sep 04, 2013 8:54 am

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by MarFan »

Digit wrote:Before you connect the OTGW to a RPi, remember that the GPIO is not 5V tolerant, it's 3.3V
Maybe it's simpler to use a RS232 > USB thingy to connect it, or Ethernet-enable the OTGW by losing the MAX232 and use a TTL to Ethernet converter, I did that once. Or a TTL to Wifi... whatever suits you best.

Yes, you can use scripts or whatever to process the data on the RPi, with whatever you prefer, as long as it runs on Linux.
The only thing you have to do is create the code... :wink:
Is this also a problem when I order the USB version ??
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by Digit »

Eh, what problem are you referring to?
There is no problem, only solutions and I mention some of them.
So I don't understand the question "also a problem with the USB version". What problem?

But USB = USB, so I think the answer is no if that was the question.
MarFan
Starting Member
Starting Member
Posts: 15
Joined: Wed Sep 04, 2013 8:54 am

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by MarFan »

:D clear writting can be so complex :lol:

Your solution is to use an RS232 to USB converter. But what when I order the USB version of the OTgw?
Does that version do not have the voltage problems ? IOW, can I directly connect the USB version to the Rpi ?
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by Digit »

:)
Yep, I see no problem why it wouldn't; as I said, USB=USB.
So the USB version will have USB level voltage on its USB connector.
There's no need to check that, it's too common.
MarFan
Starting Member
Starting Member
Posts: 15
Joined: Wed Sep 04, 2013 8:54 am

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by MarFan »

Thank you, (talking about difference, meaning the same :lol: )

When connected are there speciale instructions/setup ? Do you now how to install OTmonitor?
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by Digit »

No, never used OTmonitor.
algol
Starting Member
Starting Member
Posts: 10
Joined: Wed Jul 31, 2013 5:31 pm

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by algol »

Simply download (http://otgw.tclcode.com/download/otmonitor-ahf) and run in RPi.

Works like a charm.
MarFan
Starting Member
Starting Member
Posts: 15
Joined: Wed Sep 04, 2013 8:54 am

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by MarFan »

I hope somebody can help me with the simple download and run...
(I did a download, but double click in GUI did not work and an apt-get install also not)

I'm a newbie on the RasPi so is there a quick install instruction ?

Thanks
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by hvxl »

There is actually one additional step: You have to make the file executable (In pcmanfm: Right-click on otmonitor-ahf (or whatever you named it), select Properties, go to the Permissions tab, and enable the "Make the file executable" option).
Schelte
MarFan
Starting Member
Starting Member
Posts: 15
Joined: Wed Sep 04, 2013 8:54 am

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by MarFan »

This is working, thank you.
The program is working, but when I want to connect (Interface) None of the 4 Serial ports (/dev/ttyS0 -/dev/ttyS3) is working ?
Do I have to set something else ?
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by hvxl »

You will have to enter the correct device yourself. What that is depends what you're using to connect to the gateway. If it's a USB-serial device, you will have to use something like /dev/ttyUSB0. For the built-in serial port it's /dev/ttyAMA0.
Schelte
MarFan
Starting Member
Starting Member
Posts: 15
Joined: Wed Sep 04, 2013 8:54 am

Re: Connect an Opentherm Gateway to a Raspberry Pi

Post by MarFan »

Thanks, so simple it can be... I thought that i could only choice between the 4...
I now have result in my screen, thanks
Post Reply

Return to “Opentherm Gateway Forum”