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

Problem with more than one device on the bus #11

Open
StefanR71 opened this issue Aug 3, 2022 · 2 comments
Open

Problem with more than one device on the bus #11

StefanR71 opened this issue Aug 3, 2022 · 2 comments

Comments

@StefanR71
Copy link

Hi,

nice script and it works very well with the Vitosolic on the bus, now i connected to the LAN adapter a second device and i got very often a error. I can try the command several times and then i got the expected output.

Most times i got this error message:

Traceback (most recent call last):
File "resol.py", line 250, in
load_data()
File "resol.py", line 65, in load_data
print(format_message_pv1(msg))
File "resol.py", line 170, in format_message_pv1
integrated = integrate_septett(msg[9+(i6):15+(i6)])
File "resol.py", line 218, in integrate_septett
septet = ord(frame[4])
IndexError: string index out of range

And some times:

Traceback (most recent call last):
File "resol.py", line 250, in
load_data()
File "resol.py", line 65, in load_data
print(format_message_pv1(msg))
File "resol.py", line 176, in format_message_pv1
parsed += (" CHECKSUM"+str(i+1)).ljust(15,'.')+": " + format_byte(msg[14+(i*6)]) + "\n"
IndexError: string index out of range

I have a Vitosolic 200 and a DelteTherm HC Max connected to the vbus. I put both devices in a single spec file. And configured only some specific values in the spec file to output.

When i switch off the DeltaTherm, the Vitosolic is woring fine again.

Perhaps you have a hint to help, becasue i'm not a python specialist.

Thank you very much!

@rellit
Copy link
Owner

rellit commented Aug 3, 2022 via email

@StefanR71
Copy link
Author

Hi Tim,

i got now a 2nd LAN adapter, so i have one IP for each device. That is working more stable...

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

2 participants