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

query #18

Open
relft opened this issue Apr 14, 2019 · 56 comments
Open

query #18

relft opened this issue Apr 14, 2019 · 56 comments

Comments

@relft
Copy link

relft commented Apr 14, 2019

Hi,

I'm using https://github.com/zanac/pyHPSU with latest versions of june 2018 and rote HPSU 508 , and I have detected some issue, not working daemon (as workaround using a script + sleep) and also receiving some errors like

2019-04-14 07:52:26,515 - ERROR - RECV:bytearray(b'b\x10\xfa\n\x0c\x00/')
2019-04-14 07:52:26,516 - ERROR - msg not sync, timeout
2019-04-14 07:52:28,520 - ERROR - SEND:[49, 0, 3, 0, 0, 0, 0]
2019-04-14 07:52:28,521 - ERROR - RECV:bytearray(b'2\x10\x0e\x01\x87\x00\x00')
2019-04-14 07:52:28,522 - ERROR - SEND:[49, 0, 3, 0, 0, 0, 0]
2019-04-14 07:52:28,522 - ERROR - RECV:bytearray(b' \nR\x01\x00\x00\x00')
2019-04-14 07:52:28,524 - ERROR - SEND:[49, 0, 3, 0, 0, 0, 0]
2019-04-14 07:52:28,524 - ERROR - RECV:bytearray(b' \nV\x00\x00\x00\x00')
2019-04-14 07:52:28,525 - ERROR - SEND:[49, 0, 3, 0, 0, 0, 0]
2019-04-14 07:52:28,526 - ERROR - RECV:bytearray(b' \nW\x00\x00\x00\x00')
2019-04-14 07:52:28,527 - ERROR - SEND:[49, 0, 3, 0, 0, 0, 0]

My question is related with your version, is the same than zanac. can I use without compatibility issues? what are the differences?

Thanks

@relft
Copy link
Author

relft commented Apr 14, 2019

With you versions I can use to monitor and also attach a rocon u1 without issues or incompatibilities?

Thanks

@Spanni26
Copy link
Owner

spanni/pyHPSU is based on the code of zanac/pyHPSU, but is under active development.
You can connect your can interface parallel to the Rocon U1

@relft
Copy link
Author

relft commented May 11, 2019

Thanks, Connected rocon 1 and keeping connected with pyhpsu and all is working!!!
Great!

Now I'm using latest Zanac version, and I have chcked that this version Spanni26 is newer and with more features, I can use same versions with smae commands used in Zanac or I need to make some changes?

I'm searching how to obtain ambien temperatures from rocon u1 but I can't fins where is stored in Zanac or spanni version, any suggestion how to get insider temperature from rocon u1?

Thanks

@Spanni26
Copy link
Owner

As said: this repo hier (spanni26) is based on zanacs pyHPSU. But he can't develop his version anymore cause a lack of time. So we forked his version and developed it further.
So Zanacs version is dead (sorry zanac). But all of his work is here in the spanni26 fork.

What temperature do you wan't to read? The temperature in the house? Do you have a sensor installed for that?

@relft
Copy link
Author

relft commented May 12, 2019 via email

@Spanni26
Copy link
Owner

Hello,

I've never seen a rocon U1. Is the temperature always shown on the display or dou you have to select it?
We have to find it in a can dump.

@relft
Copy link
Author

relft commented May 12, 2019 via email

@Spanni26
Copy link
Owner

Is the temperature also shown on the HPSU display?

@relft
Copy link
Author

relft commented May 13, 2019 via email

@Spanni26
Copy link
Owner

Is the room temperature shown on the Display of the HPSU or can it be displayed there? Otherwise its hard to find the can code

@svde
Copy link

svde commented May 14, 2019

Perhaps it's:
{"name": "cRAUMISTTEMP",
"infoNumber": {"byteHigh": "0x00", "byteLow": "0x11"}, "type": "float", "transferThreshold": "0.5", "factor": "10"},

@Spanni26
Copy link
Owner

Possibly :) But whats the can code?

@svde
Copy link

svde commented May 14, 2019

$ /home/stefan/can_progs/can_scan can0 680 180.0011
elster-kromschroeder can-bus address scanner and test utility
copyright (c) 2014 Jürg Müller, CH-5524

value: 8000 (RAUMISTTEMP not available)

Which makes sense, as I don't have the rocon u1 device.

@Spanni26
Copy link
Owner

If someone could lend me U1 I can test it...

@gobartos
Copy link

gobartos commented May 14, 2019

I have 2 of them in use :) Belgium close to German border.

@Spanni26
Copy link
Owner

I need it here :)

@svde
Copy link

svde commented May 14, 2019

Or... you need somebody to run some commands on the canbus connected to a system which has a u1

@Spanni26
Copy link
Owner

Its a timing problem....you have to run a candump right at that moment you call the room temperature directly at the HPSU :)

@svde
Copy link

svde commented May 14, 2019

Or just ask for the value using can_scan can0 680 180.0011
using can_progs from http://juerg5524.ch/list_data.php

@Spanni26
Copy link
Owner

Spanni26 commented May 14, 2019

can_scan never worked for me. Can you do a "candump can0" and call your can_scan?

@svde
Copy link

svde commented May 14, 2019

can0 69D [7] C1 0E FA 01 99 00 00
can0 680 [7] 31 00 FA 00 11 00 00
can0 180 [7] D2 00 FA 00 11 80 00

can0 69D [7] C1 0F FA 01 99 00 00

but I don't have a u1 device.

@relft
Copy link
Author

relft commented May 14, 2019 via email

@Spanni26
Copy link
Owner

Spanni26 commented May 15, 2019

Ok. I've added a command "t_room".
To test it you have to pull the repo and call install.sh
If someone with an rocon U1 could test it please :)

Btw: Thanks svde :)

@relft
Copy link
Author

relft commented May 15, 2019 via email

@Spanni26
Copy link
Owner

I still need the same: The Can-Code and the information, if the room-temp is displayed directly at the HPSU.
We only talk directly to the controller from the HPSU. If the Controller doesn't know the room temp...we can't ask him about :)

@Spanni26
Copy link
Owner

@relft : please do the following:
on you unix machine do:
Make sure you installed the program "candump" (on debian it's contained in "can-utils")
"timout 300 candump can0 > /tmp/candump_relft" and post the file /tmp/candump_relft
Please send us also the temperature showed at your U1

@relft
Copy link
Author

relft commented May 16, 2019 via email

@hackepeterOli
Copy link

hackepeterOli commented May 16, 2019 via email

@relft
Copy link
Author

relft commented May 16, 2019 via email

@Spanni26
Copy link
Owner

Spanni26 commented May 16, 2019

Hmmm, where is that file @relft ?
Please send it to dspannbauer at web.de

@Spanni26
Copy link
Owner

Ok, got the Log.
@relft How many U1 do you have? I have 2 can IDs found in the log which I can't find in my home installation...6A8 and 400

@Spanni26
Copy link
Owner

I changed the command for t_room to query the 400....please test it. But write down the major configuration values from your HPSU...just to be save :)

@relft
Copy link
Author

relft commented May 17, 2019 via email

@relft
Copy link
Author

relft commented May 17, 2019 via email

@Spanni26
Copy link
Owner

You can test it....theres always a risk to reset the HPSU when testing values....so take a paper and a pencil :)

@relft
Copy link
Author

relft commented May 17, 2019 via email

@Spanni26
Copy link
Owner

Hmm, no. When you try to write some unknown value. But In your case there is no problem cause you are just reading....

@relft
Copy link
Author

relft commented May 17, 2019 via email

@relft
Copy link
Author

relft commented May 17, 2019

Hi

Trying to migrate to spanni26 from zanac I have problems to configure emconcms
with zanac using:
cat emoncms.ini
[config]
apikey=key.....
emoncms_url=http://ip/emoncms

[node]
HPSU508=t_hs,t_hc,flow_rate,t_return,mode,t_ext,t_hc_set,bpv,posmix,t_dhw,t_dhw_set,t_v1,t_dhw1,t_vbh,t_r1,tliq2,tdhw2,ehs,qboh,qchhp,qch,qwp,qdhw,pump,ta2,t_outdoor_ot1,t_dhw_setpoint1,hyst_hp

trying with spanni26 in pyhpsu.conf added:
[EMONCMS]
URL = http://ip/emoncms
APIKEY = key...
HPSU508 = t_hs

and I receive this error:

pyHPSU.py -d PYCAN -c t_hs -o EMONCMS

warning - command t_hs defined as commandline option but not in emoncms

Any suggestion about where is the error, I have ried adding node_HPSU508 =.. and then error is

pyHPSU.py -d PYCAN -c t_hs -o EMONCMS

warning - command t_hs defined as commandline option but not in emoncms
Traceback (most recent call last):
File "/usr/bin/pyHPSU.py", line 339, in
main(sys.argv[1:])
File "/usr/bin/pyHPSU.py", line 276, in main
read_can(driver, logger, port, cmd, lg_code,verbose,output_type)
File "/usr/bin/pyHPSU.py", line 333, in read_can
hpsu_plugin.pushValues(vars=arrResponse)
File "/usr/lib/python3/dist-packages/HPSU/plugins/emoncms.py", line 91, in pushValues
for r2 in self.listNodes[node]:
TypeError: 'NoneType' object is not iterable

Searching and example of configuration like this https://github.com/zanac/pyHPSU/blob/f056924ad16dd4bdc4900ecbc7db20b7f04d896d/etc/pyHPSU/EMONCMS.ini but I can't find

Any suggestion?
Thanks

@relft
Copy link
Author

relft commented May 18, 2019

with zanac versions command used is
sudo /usr/share/pyHPSU/bin/pyHPSU.py -d PYCAN -c t_hs -c t_hc -c flow_rate -c t_return -c mode -c t_ext -c t_hc_set -c bpv -c posmix -c t_dhw -c t_dhw_set -c t_v1 -c t_dhw1 -c t_vbh -c t_r1 -c tliq2 -c tdhw2 -c ehs -c qboh -c qchhp -c qch -c qwp -c qdhw -c pump -c ta2 -c t_outdoor_ot1 -c t_dhw_setpoint1 -c hyst_hp -o CLOUD -u EMONCMS -g /var/log/pyHPSU_pican2.log -v 1
and this works,

but with spanni26 versions is not working, seems that -u (upload) has been removed and I can't find a clear information how to configure data to emoncms, anybody knows if this is working or how can I solve the issue?

Thanks

@pdcemulator
Copy link

pdcemulator commented May 18, 2019

Do you have something like this in your pyhpsu.conf?
But I am not using EMONCMS, so maybe another user can post an example working config. Not sure if this works because here is no authentication.

[EMONCMS]
URL = https://emoncms.org
node_1 = t_hs, t_hs_setpoint
node_2 = qoh....

@relft
Copy link
Author

relft commented May 18, 2019

Right, tried multiple configurations with this:

[EMONCMS]
URL = http://ip/emoncms
APIKEY = key
node_HPSU508 = t_hs
##node_1 = t_hs

tried comment node_HPSU508, and enabled node_1 without success... also tried with and without apikey ... I have chcked code and comapring with zanac -u upload was removed and with zanac was needed

Why -u upload options was removed can be readded like was configured with zanac versions, this was working correctly with previous versions, Can contain any incompatibility or not with your version?

Thanks

@Spanni26
Copy link
Owner

Spanni26 commented May 18, 2019 via email

@Spanni26
Copy link
Owner

News here?

@relft
Copy link
Author

relft commented May 21, 2019 via email

@Spanni26
Copy link
Owner

Spanni26 commented May 21, 2019 via email

@relft
Copy link
Author

relft commented May 21, 2019 via email

@Spanni26
Copy link
Owner

can you show us your pyhpsu.conf?
I removed the cloud option to make it more clear that there is a plugin for each method of sharing the data.

@Spanni26
Copy link
Owner

Will try EMONCMS tomorrow...

@relft
Copy link
Author

relft commented May 26, 2019 via email

@Spanni26
Copy link
Owner

Simply delete the directory with the zanac_hpsu to be save. But it shouldn't conflict with the spanni_pyHPSU

@Chrischi-
Copy link

Hi,

i recently getting more and more "communication error" displayed on the control panel unit and i have to set the whole system back to "config: active". I only read values via CAN and don't write anything.

I think that "pyHPSU/CAN BUS" uses the same CAN-Endpoint as the control panel.
Can anyone say something about this? That would also makes sense if you look which answer the original Rocon gets after a read query.

greets

@Spanni26
Copy link
Owner

Spanni26 commented Jun 5, 2019

config:active? Where can you set this?
To check if another endpoint uses the sam ID simply shut down the pyHPSU and start a candump. The ID should appear there.
In the command only the destination of the telegram is set, who you asking about a value. For sending the ID set in the "ID" tag from the specific command is used.

I get Comm error when there are a lot of messages on the bus, so if I'm querying a lot of values at once.

@Chrischi-
Copy link

Chrischi- commented Jun 5, 2019

config:active? Where can you set this?

The Display at the Rotex Unit shows a "Communication Error" and the whole System has to be reconfigured. There is a Option "Config inactive / active" and you need Supervisor Rights to set it to "active" again. After that the Unit will reload the last saved settings and restart.

@svde
Copy link

svde commented Jun 5, 2019

Which error is it? E91?

@Chrischi-
Copy link

Chrischi- commented Jun 6, 2019

No, the display doesn't show an error number. Only "Communication Failure".
As if you were setting up the entire system from factory defaults again.
Setting the "KonfigMFR" back to "Aktiv" restarts the whole Unit and everything is up and running
again.

It seems like after setting AT SH 310 to get the external temp (61 00 FA 0C 1F 00 00).
But the error occurs very infrequently.

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

7 participants