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

Onewire: missing sensors because "no payload error" on crowded bus #619

Closed
andreas-p opened this issue Jul 28, 2022 · 11 comments
Closed

Onewire: missing sensors because "no payload error" on crowded bus #619

andreas-p opened this issue Jul 28, 2022 · 11 comments

Comments

@andreas-p
Copy link

andreas-p commented Jul 28, 2022

I have two OW interfaces connected to my Odroid-M, but only sensors on one bus are scanned.

Using the command line owdir /bus.1will need about 1 second, owdir /bus.0 takes 4.5s or so.
Doing this in plugins/onewire with python3 interactively:

import owbase
ow=owbase.OwBase('127.0.0.1', 4304')
ow.dir('/bus.1')

bus1 works fine, but bus0 will usually throw owbase.owex: no payload for /bus.0/ (sometimes succeeding). Interestingly, owdir('/') never fails, but will happily return all items.

Since the /bus.1 request fails after about 2 seconds, I increased the _sock.settimeout to 10 seconds, but that didn't help

Any suggestions?

@bmxp
Copy link
Member

bmxp commented Jul 28, 2022

What do you want to achieve?

@andreas-p andreas-p changed the title Onewire: no payload error on crowded bus Onewire: missing sensors because "no payload error" on crowded bus Jul 28, 2022
@andreas-p
Copy link
Author

See the sensors on bus.0 as well; seems I skipped this... updated.
Currently, only bus.1 sensors are evaluated.

@bmxp
Copy link
Member

bmxp commented Jul 29, 2022

Some more questions:

  • Which Interfaces to you have in use for your 2 buses?
  • How many devices are connected to each bus and of which kind are your devices?
    Just some temp sensors or other more elaborated sensors, too?
  • which version of SmartHomeNG do you have in use?

@andreas-p
Copy link
Author

I'm using two Denkovi interfaces. bus.0 has 31 devices, bus.1 16. About 15 multi-sensors, the rest temperature.
SmarthomeNG is 1.9.2

@bmxp
Copy link
Member

bmxp commented Jul 29, 2022

With Denkovi you mean this one ?

@andreas-p
Copy link
Author

Yes.

@bmxp
Copy link
Member

bmxp commented Jul 29, 2022

Are you using develop or master branch?

@bmxp
Copy link
Member

bmxp commented Jul 29, 2022

Are you found on gitter chat? I could easily send you a changed owbase.py then ...

@andreas-p
Copy link
Author

I'm on master branch, you can contact me via gitter.

@msinn
Copy link
Member

msinn commented Feb 22, 2023

Is this issue still relevant?

@andreas-p
Copy link
Author

Not sure. I modified the source to not try to group by bus.X, but list the devices flat which fixed the problem for me.

@msinn msinn closed this as completed Feb 23, 2023
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

3 participants