Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to run on Rotex rocon-g1 device #11

Open
peak-load opened this issue Jan 13, 2018 · 49 comments
Open

Add support to run on Rotex rocon-g1 device #11

peak-load opened this issue Jan 13, 2018 · 49 comments

Comments

@peak-load
Copy link

With my HPSU compact I got Rotex rocon-g1 gateway, to run it using Rotex Cloud. I don't like that much, so I tried to check what's inside and found Beagle Bone Black with CAN module.

https://www.heizungsdiscount24.de/regelungstechnik/rotex-gateway-rocon-g1-zur-ankopplung-der-steuerung-an-das-internet.html

I got root to the device and found there Debian

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.8 (wheezy)
Release:        7.8
Codename:       wheezy
# cat /etc/issue  
Debian GNU/Linux 7 \n \l
BeagleBoard.org Debian Image 2015-03-01
 ip link show  can0
3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 10
    link/can 

I installed can-utils and can dump can frames:

root@rocon-g1:~/pyHPSU# /root/can-utils/candump can0
  can0  69D   [7]  C1 0F FA 01 99 00 00
  can0  69D   [7]  31 00 FA 01 48 00 00
  can0  180   [7]  D2 1D FA 01 48 00 00
  can0  69D   [7]  31 00 FA 00 0C 00 00
  can0  180   [7]  D2 1D FA 00 0C 00 2D
  can0  69D   [7]  31 00 FA 0A 0C 00 00
  can0  180   [7]  D2 1D FA 0A 0C 80 00
  can0  69D   [7]  31 00 FA 01 22 00 00
  can0  180   [7]  D2 1D FA 01 22 0D 00
  can0  69D   [7]  31 00 FA 01 23 00 00
  can0  180   [7]  D2 1D FA 01 23 01 00
  can0  69D   [7]  31 00 FA 01 24 00 00
  can0  180   [7]  D2 1D FA 01 24 12 00
  can0  69D   [7]  31 00 FA 01 25 00 00
  can0  180   [7]  D2 1D FA 01 25 0A 00
  can0  69D   [7]  31 00 FA 01 26 00 00
  can0  180   [7]  D2 1D FA 01 26 1C 00
  can0  69D   [7]  31 00 FA 01 12 00 00
  can0  180   [7]  D2 1D FA 01 12 03 00

I had to install python from sources to get working as python in packages is outdated. I'm not sure what driver use to get it working?

/usr/local/bin/python3 pyHPSU.py -l EN  -c t_hc_set -c t_dhw_set -c t_ext -c t_outdoor_ot1 -c ta2 -o JSON -v 1
Traceback (most recent call last):
  File "pyHPSU.py", line 148, in <module>
    main(sys.argv[1:])
  File "pyHPSU.py", line 88, in main
    hpsu = HPSU(driver=driver, logger=logger, port=port, cmd=cmd, lg_code=lg_code)
  File "/root/pyHPSU/HPSU/HPSU.py", line 58, in __init__
    desc = row[2]
IndexError: list index out of range
/usr/local/bin/python3 pyHPSU.py -l EN -d EMU -c t_hc_set -c t_dhw_set -c t_ext -c t_outdoor_ot1 -c ta2 -o JSON -v 1
Traceback (most recent call last):
  File "pyHPSU.py", line 148, in <module>
    main(sys.argv[1:])
  File "pyHPSU.py", line 88, in main
    hpsu = HPSU(driver=driver, logger=logger, port=port, cmd=cmd, lg_code=lg_code)
  File "/root/pyHPSU/HPSU/HPSU.py", line 58, in __init__
    desc = row[2]
IndexError: list index out of range

Need your help to get pyHPSU working with can0 in this device.

@svde
Copy link

svde commented Jan 13, 2018 via email

@peak-load
Copy link
Author

I don't think it's translation related

@svde
Copy link

svde commented Jan 14, 2018 via email

@Spanni26
Copy link
Contributor

Try it with the italian translation.... "-l IT". Seems the only file that works.
I added a pull request that fixes this an some other errors....but there is nobody to accept his request.

But you can also use my fork....

@peak-load
Copy link
Author

Guys I copied content from rotex-g1 device https://github.com/peak-load/rocon-g1 I see there bunch of outdated and vulnerable nodejs modules and debian packages.

Rotex-g1 is running code from that directory, so maybe will be useful for someone to check how Rotex guys dealing with can bus (commands and codes are there in source codes).

@svde
Copy link

svde commented Jan 25, 2018 via email

@peak-load
Copy link
Author

peak-load commented Jan 25, 2018

@svde It's beaglebone black inside, with root user. I started from microsd card mounted disk, chroot-ed and then passwd root did all the magic. Btw, Rotex guys recklessly allowed root access for everyone over ssh thinking that only they know root password.

My rotex-g1 mmc disk copy (download, xz, then mount under Linux system, it's ext4 fs is there:

https://mega.nz/#!UBAF0JyR

Decryption key: !YV_zFloYonvcGYt0V_EaUBIamqQ-6EsLfAkeRVB1xgs

$ file mmcblk1.fs
mmcblk1.fs: Linux rev 1.0 ext4 filesystem data, UUID=1b4531c9-c25a-466a-9fee-5e8896b5ec3d, volume name "BEAGLEBONE" (extents) (large files) (huge files)
ls -lah mmcblk1.fs.xz 
-rwxrwxrwx  1 user  staff   163M Jan 1 00:00 mmcblk1.fs.xz
$ shasum -a512 mmcblk1.fs.xz 
b4718a158473c6e4a5c879ca2c5d49daa0d86dd37d3fe375d3a0ca1a3f8b61d0e1a474e66133e6bb8b1ddb96b6693afc2f5f61d1481cb3a224f8f07165d97ca2  mmcblk1.fs.xz

It was not easy at start , but was very trivial when it'd done! I give credits to #beaglebone guys at irc.freenode.net

Short instructions

  1. Download Debian 9.2 2017-10-10 4GB SD IoT image image from http://beagleboard.org/latest-images and dd to microsd card.
    https://debian.beagleboard.org/images/bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz

  2. Put sd card into beaglebond slot and restart it, you will be booted into debian with default login and password

  3. Mount mmc disk, chroot, passwd

@Spanni26
Copy link
Contributor

Spanni26 commented Feb 6, 2018

Perhaps we should create a forum or a chat or something...I think its not the right please to discuss here :)

@Spanni26
Copy link
Contributor

Spanni26 commented Feb 22, 2018

I created a secrect facebook group. You can contact me on Facebook (daniel.spannbauer.12) to get access to that group.

@itmanone
Copy link

itmanone commented Feb 22, 2018 via email

@Spanni26
Copy link
Contributor

daniel.spannbauer.12 is the right account on facebook.

@svde
Copy link

svde commented Feb 23, 2018 via email

@migabc
Copy link

migabc commented Jan 10, 2019

Hi,
I'm thinking of purchasing the Rotex Gateway RoCon G1 for my HPSU compact system.
Do you guys recomend it?

The main purpose is to be able to control (turn off/on) the DHW pump via Homekit/Homebridge.

Thanks for your feedback

@svde
Copy link

svde commented Jan 10, 2019 via email

@migabc
Copy link

migabc commented Jan 10, 2019

Yes, I'm aware of that.
But given that it allows web access (https://www.rotex-control.com/) it should be possible to write a plugin for homebridge.

Anyway, do you recommend this gateway?
What exactly will I be able to control with it?
Do you know if Rotex provides some sort of demo account so I can see what features/controls are available?

@peak-load
Copy link
Author

peak-load commented Jan 10, 2019 via email

@migabc
Copy link

migabc commented Jan 10, 2019

Is it possible to turn off/on the heat pump?
Where do you recomend I buy the gateway. Are there used units on sale?

Thanks,

@svde
Copy link

svde commented Jan 10, 2019 via email

@migabc
Copy link

migabc commented Jan 10, 2019

You can only control it from the app. Not from the rotex-control.com website. The website only allows you to see some values from the heat pump, but not change anything. I only use the app to switch from standby to automatic1 when I return from vacation. The pyHPSU software can do the same thing.

Thanks for your feedback
Are you also using the pyHPSU software. What can you control with it?

@Spanni26
Copy link
Contributor

Look at the commands_hpsu_*.csv-files.
There you can the which commands pyHPSU supports.
More commands are supported by the fork https://github.com/Spanni26/pyHPSU spports more commands.

@peak-load
Copy link
Author

Is it possible to turn off/on the heat pump?
Where do you recomend I buy the gateway. Are there used units on sale?

Thanks,

https://www.heizungdirekt24.de/product_info.php?info=p2220_rotex-gateway-rocon-g1.html

@migabc
Copy link

migabc commented Jan 21, 2019

I just found out that my heat pump (HPSU compact 516) does not have the Rcon module . so we cannot connect the Rcon gateway to it
Instead it has XR1P circuit board with connection terminal bar at the bottom (X1).
I'm currently controlling my heating (on/off) by remotley shunting the terminals RTN and RTH on that X1 module.
Does anybody here know the corresponding terminals for turning On/Off the DHW?

@svde
Copy link

svde commented Jan 21, 2019

Do you have a link to the manual of your heatpump? According to the manual I've downloaded of the 516 you should have a RoCon-BM1 board in it. That board contains a canbus connector where the RoCon-G1 is connected to, or a canbus device (like a usbtin) so you can use the pyHPSU software.

@Spanni26
Copy link
Contributor

I just found out that my heat pump (HPSU compact 516) does not have the Rcon module . so we cannot connect the Rcon gateway to it
Instead it has XR1P circuit board with connection terminal bar at the bottom (X1).
I'm currently controlling my heating (on/off) by remotley shunting the terminals RTN and RTH on that X1 module.
Does anybody here know the corresponding terminals for turning On/Off the DHW?

Do you have Fotos of the electronics?

@migabc
Copy link

migabc commented Jan 21, 2019

Only gen4 and 5 have the RoCon module
Mine is gen3

@migabc
Copy link

migabc commented Jan 21, 2019

img_3528

@migabc
Copy link

migabc commented Jan 21, 2019

img_3529

@relft
Copy link

relft commented Apr 14, 2019

Hi,

I have to install a rocon u1, and use same connection j13 that now I'm using to minitor rotex, can I connect both system at same time without any problems? What is the recommended way?

Thans

@migabc
Copy link

migabc commented Apr 29, 2019

HI,

I'm controlling my Heating (on/off) by remotely shunting the terminals RTN and RTH on this X1 board (see picture).
I need to do the same thing for DHW
Does anybody here know which terminals control (on/off) the DHW?
Shunt for Heating (ON-OFF)

@dracunciliasis
Copy link

Hello,

The disk copy (dd) is no longer available at the MEGA sharing platform. Can you please repost the file.
By the way nice reverse engineering work done.

@svde It's beaglebone black inside, with root user. I started from microsd card mounted disk, chroot-ed and then passwd root did all the magic. Btw, Rotex guys recklessly allowed root access for everyone over ssh thinking that only they know root password.

My rotex-g1 mmc disk copy (download, xz, then mount under Linux system, it's ext4 fs is there:

https://mega.nz/#!UBAF0JyR

Decryption key: !YV_zFloYonvcGYt0V_EaUBIamqQ-6EsLfAkeRVB1xgs

$ file mmcblk1.fs
mmcblk1.fs: Linux rev 1.0 ext4 filesystem data, UUID=1b4531c9-c25a-466a-9fee-5e8896b5ec3d, volume name "BEAGLEBONE" (extents) (large files) (huge files)
ls -lah mmcblk1.fs.xz 
-rwxrwxrwx  1 user  staff   163M Jan 1 00:00 mmcblk1.fs.xz
$ shasum -a512 mmcblk1.fs.xz 
b4718a158473c6e4a5c879ca2c5d49daa0d86dd37d3fe375d3a0ca1a3f8b61d0e1a474e66133e6bb8b1ddb96b6693afc2f5f61d1481cb3a224f8f07165d97ca2  mmcblk1.fs.xz

It was not easy at start , but was very trivial when it'd done! I give credits to #beaglebone guys at irc.freenode.net

Short instructions

  1. Download Debian 9.2 2017-10-10 4GB SD IoT image image from http://beagleboard.org/latest-images and dd to microsd card.
    https://debian.beagleboard.org/images/bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz
  2. Put sd card into beaglebond slot and restart it, you will be booted into debian with default login and password
  3. Mount mmc disk, chroot, passwd

Hello,

The disk copy (dd) is no longer available at the MEGA sharing platform. Can you please repost the file.
By the way nice reverse engineering work done.

@svde
Copy link

svde commented Dec 15, 2019

The disk copy (dd) is no longer available at the MEGA sharing platform. Can you please repost the file.
By the way nice reverse engineering work done.

https://www.eijk.nu/se/mmcblk1.fs.xz

@dracunciliasis
Copy link

The disk copy (dd) is no longer available at the MEGA sharing platform. Can you please repost the file.
By the way nice reverse engineering work done.

https://www.eijk.nu/se/mmcblk1.fs.xz

Thanks

@rqwertz
Copy link

rqwertz commented Jan 31, 2020

Hello, does anyone know the login data for the local web server (local IP of the gateway)? The Rotex website is unfortunately sometimes unavailable, so I would like to be able to access the G1 locally.
Thanks
Michael

@Netzwerkprofi
Copy link

It's been a while with your posts, but i would like to get the local web login as well for the RoCon G1 Gateway. Does somebody know it or has a link where to find it in the internet? Thank you very much.

@peak-load
Copy link
Author

peak-load commented Jun 27, 2020 via email

@Infyd
Copy link

Infyd commented Sep 23, 2021

You can access G1 using instructions below: 1. Download Debian 9.2 2017-10-10 4GB SD IoT image image from http://beagleboard.org/latest-images and dd to NEW microsd card. https://debian.beagleboard.org/images/bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz 2. Put sd card into beaglebond slot and restart it, you will be booted into debian with default login and password 3. Mount mmc disk (G1 system disk) then change password using chroot and passwd commands.

On Wed, Jun 3, 2020 at 2:15 PM Netzwerkprofi @.***> wrote: It's been a while with your posts, but i would like to get the local web login as well for the RoCon G1 Gateway. Does somebody know it or has a link where to find it in the internet? Thank you very much. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#11 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIE7E5O4AWIJU7IKVOPJ63DRUYWEDANCNFSM4ELUVBSA .
-- -- With regards, Eugene Sudyr

hello everybody,

could somebody please better explain the latest command ? i've succesfully booted my rocon with de default debian image...i've downloaded the "rotex-g1 mmc disk copy", unpacked and copied to an USB disk...inserted the disk on the rocon i can see: /dev/disk/by-uuid/02390581-cea5-463e-a991-c0c731100cf8 ext4 3.5G 530M 2.8G 16% /

is it that right ? what to do now ?

Regards
Giuseppe

@Infyd
Copy link

Infyd commented Sep 23, 2021

ok...i've done everything...but now i can't install python modules eg pika or can...how do you do that ?

@filozof83
Copy link

ok...i've done everything...but now i can't install python modules eg pika or can...how do you do that ?

same problem... is there a solution or we have to update to the newest debian for beagleboard? LG

@Infyd
Copy link

Infyd commented Oct 28, 2021 via email

@arizzi
Copy link

arizzi commented Nov 6, 2022

it looks like in the G1 image there is an interesting list of commands here:
/var/local/rocon-g1/node_modules/rotex-control-module/data/data.json

@Bl00d-B0b
Copy link

Hello.

I have Rocon-g1 device. I get access to web with admin password. this interface have API functionality. maybe someone know where I can get API docs?

Ed

@ldnrktml
Copy link

Use this, it's even better:

https://github.com/Trunks1982/Daikin-Rotex-HPSU-CAN-Seriell?tab=readme-ov-file

You can completely control and monitor the heat pump and also save energy when defrosting.

@Bl00d-B0b
Copy link

Hello,

yes, I know this. I already order to make 5 boxes. I can sell some of those, as I only need 3.

Ed

@Sguerra88
Copy link

I have Rocon-g1 device. I get access to web with admin password. this interface have API functionality. maybe someone know where I can get API docs?

hi, were you able to access the rocon g1 locally? via the web page? are there any default credentials?

@Bl00d-B0b
Copy link

It's simple.

get ssh access to device. then change source code for authentication && to || (user and password) to (user or password),
login with username admin and use any password. then You can set your password and return code back :)

Ed

@Infyd
Copy link

Infyd commented Jan 29, 2025 via email

@Bl00d-B0b
Copy link

hello,

not sure what .bin file mention there.

@Sguerra88
Copy link

È semplice.

Ottieni l'accesso SSH al dispositivo. Quindi modifica il codice sorgente per l'autenticazione && in || (utente e password) in (utente o password), accedi con il nome utente admin e usa qualsiasi password. Quindi puoi impostare la tua password e restituire il codice :)

Ed

Hi, thanks for the info, I'll try these days, but then having the rocon g1. Can I read the data with this integration? Or do I still have to connect ESPhome? Sorry if I ask directly but I've been trying for 4 years!
Thanks
Stefano

@Bl00d-B0b
Copy link

Hello,

rocon g1 web interface allow to create API key, but unfortunetly I don't know where to get a documentation :(
I order to build this project: https://github.com/Trunks1982/Daikin-Rotex-HPSU-CAN-Seriell?tab=readme-ov-file
I try to integrate it instead rocon g1.

Ed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests